congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AutoConfig.getType
Code IndexAdd Tabnine 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)

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

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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