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

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

Best Java code snippets using org.apache.openejb.config.AutoConfig.getType (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

private String createContainer(final Class<? extends ContainerInfo> containerInfoType, final EjbDeployment ejbDeployment, final EnterpriseBean bean) throws OpenEJBException {
  if (!autoCreateContainers) {
    throw new OpenEJBException("A container of type " + getType(bean) + " must be declared in the configuration file for bean: " + bean.getEjbName());
  }
  // get the container info (data used to build the container)
  final ContainerInfo containerInfo = configFactory.configureService(containerInfoType);
  logger.info("Auto-creating a container for bean " + ejbDeployment.getDeploymentId() + ": Container(type=" + getType(bean) + ", id=" + containerInfo.id + ")");
  // if the is an MDB container we need to resolve the resource adapter
  final String resourceAdapterId = containerInfo.properties.getProperty("ResourceAdapter");
  if (resourceAdapterId != null) {
    final String newResourceId = getResourceId(ejbDeployment.getDeploymentId(), resourceAdapterId, null, null);
    if (resourceAdapterId.equals(newResourceId)) {
      containerInfo.properties.setProperty("ResourceAdapter", newResourceId);
    }
  }
  // install the container
  configFactory.install(containerInfo);
  return containerInfo.id;
}
origin: org.apache.tomee/openejb-core

private String createContainer(final Class<? extends ContainerInfo> containerInfoType, final EjbDeployment ejbDeployment, final EnterpriseBean bean) throws OpenEJBException {
  if (!autoCreateContainers) {
    throw new OpenEJBException("A container of type " + getType(bean) + " must be declared in the configuration file for bean: " + bean.getEjbName());
  }
  // get the container info (data used to build the container)
  final ContainerInfo containerInfo = configFactory.configureService(containerInfoType);
  logger.info("Auto-creating a container for bean " + ejbDeployment.getDeploymentId() + ": Container(type=" + getType(bean) + ", id=" + containerInfo.id + ")");
  // if the is an MDB container we need to resolve the resource adapter
  final String resourceAdapterId = containerInfo.properties.getProperty("ResourceAdapter");
  if (resourceAdapterId != null) {
    final String newResourceId = getResourceId(ejbDeployment.getDeploymentId(), resourceAdapterId, null, null);
    if (resourceAdapterId.equals(newResourceId)) {
      containerInfo.properties.setProperty("ResourceAdapter", newResourceId);
    }
  }
  // install the container
  configFactory.install(containerInfo);
  return containerInfo.id;
}
origin: org.apache.geronimo.ext.openejb/openejb-core

private String createContainer(Class<? extends ContainerInfo> containerInfoType, EjbDeployment ejbDeployment, EnterpriseBean bean) throws OpenEJBException {
  if (!autoCreateContainers) {
    throw new OpenEJBException("A container of type " + getType(bean) + " must be declared in the configuration file for bean: " + bean.getEjbName());
  }
  // get the container info (data used to build the container)
  ContainerInfo containerInfo = configFactory.configureService(containerInfoType);
  logger.info("Auto-creating a container for bean " + ejbDeployment.getDeploymentId() + ": Container(type=" + getType(bean) + ", id=" + containerInfo.id + ")");
  // if the is an MDB container we need to resolve the resource adapter
  String resourceAdapterId = containerInfo.properties.getProperty("ResourceAdapter");
  if (resourceAdapterId != null) {
    String newResourceId = getResourceId(ejbDeployment.getDeploymentId(), resourceAdapterId, null, null);
    if (resourceAdapterId != newResourceId) {
      containerInfo.properties.setProperty("ResourceAdapter", newResourceId);
    }
  }
  // install the container
  configFactory.install(containerInfo);
  return containerInfo.id;
}
origin: org.apache.tomee/openejb-core

final String refType = getType(ref, ejbModule.getClassLoader());
origin: org.apache.openejb/openejb-core

final String refType = getType(ref, ejbModule.getClassLoader());
origin: org.apache.openejb/openejb-core

final String refType = getType(ref, classLoader);
final String refType = getType(ref, classLoader);
origin: org.apache.tomee/openejb-core

final String refType = getType(ref, classLoader);
final String refType = getType(ref, classLoader);
origin: org.apache.openejb/openejb-core

final String refType = getType(ref, classLoader);
origin: org.apache.tomee/openejb-core

final String refType = getType(ref, classLoader);
origin: org.apache.geronimo.ext.openejb/openejb-core

Class<? extends ContainerInfo> containerInfoType = ConfigurationFactory.getContainerInfoType(getType(bean));
if (ejbDeployment.getContainerId() == null && !skipMdb(bean)) {
  String containerId = getUsableContainer(containerInfoType, bean, appResources);
origin: org.apache.openejb/openejb-core

final Class<? extends ContainerInfo> containerInfoType = ConfigurationFactory.getContainerInfoType(getType(bean));
if (ejbDeployment.getContainerId() == null && !skipMdb(bean)) {
  String containerId = getUsableContainer(containerInfoType, bean, appResources);
origin: org.apache.tomee/openejb-core

final String beanType = getType(bean);
final Class<? extends ContainerInfo> containerInfoType = ConfigurationFactory.getContainerInfoType(beanType);
logger.debug("Bean type of bean {0} is {1}", bean.getEjbName(), beanType);
org.apache.openejb.configAutoConfiggetType

Popular methods of AutoConfig

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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