Codota Logo
AutoConfig.normalizeResourceId
Code IndexAdd Codota to your IDE (free)

How to use
normalizeResourceId
method
in
org.apache.openejb.config.AutoConfig

Best Java code snippets using org.apache.openejb.config.AutoConfig.normalizeResourceId (Showing top 12 results out of 315)

  • Common ways to obtain AutoConfig
private void myMethod () {
AutoConfig a =
  • Codota IconConfigurationFactory configFactory;new AutoConfig(configFactory)
  • Smart code suggestions by Codota
}
origin: org.apache.openejb/openejb-core

public static String findResourceId(final Collection<String> resourceIds, final String inId) {
  if (inId == null) {
    return null;
  }
  final String resourceId = normalizeResourceId(inId);
  // check for existing resource with specified resourceId
  for (final String id : resourceIds) {
    if (id.equalsIgnoreCase(resourceId)) {
      return id;
    }
  }
  // check for existing resource with shortName
  final String shortName = toShortName(resourceId);
  for (final String id : resourceIds) {
    if (id.equalsIgnoreCase(shortName)) {
      return id;
    }
  }
  if (resourceId.startsWith("osgi:")) {
    return resourceId;
  }
  return null;
}
origin: org.apache.geronimo.ext.openejb/openejb-core

private String findResourceId(String resourceId, String type, Properties required, AppResources appResources) {
  if (resourceId == null) return null;
  resourceId = normalizeResourceId(resourceId);
  // check for existing resource with specified resourceId
  List<String> resourceIds = getResourceIds(appResources, type, required);
  for (String id : resourceIds) {
    if (id.equalsIgnoreCase(resourceId)) return id;
  }
  // check for existing resource with shortName
  String shortName = toShortName(resourceId);
  for (String id : resourceIds) {
    if (id.equalsIgnoreCase(shortName)) return id;
  }
  return null;
}
origin: org.apache.tomee/openejb-core

public static String findResourceId(final Collection<String> resourceIds, final String inId) {
  if (inId == null) {
    return null;
  }
  final String resourceId = normalizeResourceId(inId);
  // check for existing resource with specified resourceId
  for (final String id : resourceIds) {
    if (id.equalsIgnoreCase(resourceId)) {
      return id;
    }
  }
  // check for existing resource with shortName
  final String shortName = toShortName(resourceId);
  for (final String id : resourceIds) {
    if (id.equalsIgnoreCase(shortName)) {
      return id;
    }
  }
  if (resourceId.startsWith("osgi:")) {
    return resourceId;
  }
  return null;
}
origin: org.apache.geronimo.ext.openejb/openejb-core

resourceId = normalizeResourceId(resourceId);
origin: org.apache.tomee/openejb-core

resourceId = normalizeResourceId(resourceId);
origin: org.apache.openejb/openejb-core

resourceId = normalizeResourceId(resourceId);
origin: org.apache.tomee/openejb-core

private String getResourceId(final String beanName, String resourceId, final String type, final Properties required, AppResources appResources) throws OpenEJBException {
  resourceId = normalizeResourceId(resourceId);
origin: org.apache.geronimo.ext.openejb/openejb-core

logger.debug("raw <non-jta-data-source>" + unit.getNonJtaDataSource() + "</non-jta-datasource>");
unit.setJtaDataSource(normalizeResourceId(unit.getJtaDataSource()));
unit.setNonJtaDataSource(normalizeResourceId(unit.getNonJtaDataSource()));
origin: org.apache.openejb/openejb-core

logger.debug("raw <non-jta-data-source>" + unit.getNonJtaDataSource() + "</non-jta-datasource>");
unit.setJtaDataSource(normalizeResourceId(unit.getJtaDataSource()));
unit.setNonJtaDataSource(normalizeResourceId(unit.getNonJtaDataSource()));
origin: org.apache.tomee/openejb-core

unit.setJtaDataSource(normalizeResourceId(originalJtaDataSource));
final String originalNonJtaDataSource = unit.getNonJtaDataSource();
unit.setNonJtaDataSource(normalizeResourceId(originalNonJtaDataSource));
origin: org.apache.geronimo.ext.openejb/openejb-core

private String getResourceId(String beanName, String resourceId, String type, Properties required, AppResources appResources) throws OpenEJBException {
  resourceId = normalizeResourceId(resourceId);
origin: org.apache.openejb/openejb-core

private String getResourceId(final String beanName, String resourceId, final String type, final Properties required, AppResources appResources) throws OpenEJBException {
  resourceId = normalizeResourceId(resourceId);
org.apache.openejb.configAutoConfignormalizeResourceId

Popular methods of AutoConfig

  • <init>
  • autoCreateContainers
  • autoCreateResources
  • findResourceId
  • autoCreateResource
  • checkUnitDataSourceRefs
  • copy
  • createContainer
  • deploy
  • findResourceProviderId
  • firstMatching
  • getResourceEnvId
  • firstMatching,
  • getResourceEnvId,
  • getResourceId,
  • getResourceIds,
  • getType,
  • getUsableContainer,
  • installResource,
  • isJms,
  • logAutoCreateResource

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now