congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AutoConfig.normalizeResourceId
Code IndexAdd Tabnine 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)

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

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • JTextField (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now