org.apache.geronimo.j2ee.deployment.Module.getClassFinder()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(166)

本文整理了Java中org.apache.geronimo.j2ee.deployment.Module.getClassFinder()方法的一些代码示例,展示了Module.getClassFinder()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.getClassFinder()方法的具体详情如下:
包路径:org.apache.geronimo.j2ee.deployment.Module
类名称:Module
方法名:getClassFinder

Module.getClassFinder介绍

暂无

代码示例

代码示例来源:origin: org.apache.geronimo.modules/geronimo-persistence-jpa20-builder

private void processAnnotations(JndiConsumer specDD, Module module) throws DeploymentException {
  // Process all the annotations for this naming builder type
  PersistenceUnitAnnotationHelper.processAnnotations(specDD, module.getClassFinder());
  PersistenceContextAnnotationHelper.processAnnotations(specDD, module.getClassFinder());
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder

private void processAnnotations(JndiConsumer ejb, Module module) {
  // Process all the annotations for this naming builder type
  if (EJBAnnotationHelper.annotationsPresent(module.getClassFinder())) {
    try {
      EJBAnnotationHelper.processAnnotations(ejb, module.getClassFinder());
    } catch (Exception e) {
      log.warn("Unable to process @EJB annotations for module" + module.getName(), e);
    }
  }
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-naming-builder

private void processAnnotations(JndiConsumer specDD, Module module) throws DeploymentException {
  // Process all the annotations for this naming builder type
  //At the moment the only exception thrown is if the resulting doc is not valid.  Bail now.
  try {
    WebServiceRefAnnotationHelper.processAnnotations(specDD, module.getClassFinder());
    ResourceAnnotationHelper.processAnnotations(specDD, module.getClassFinder(), ServiceRefProcessor.INSTANCE);
  }
  catch (Exception e) {
    log.warn("Unable to process @Resource annotations for module" + module.getName(), e);
  }
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-connector-builder-1_6

public void buildNaming(JndiConsumer specDD, XmlObject plan, Module module, Map<EARContext.Key, Object> sharedContext) throws DeploymentException {
  // step 1: process annotations and update deployment descriptor
  if ((module != null) && (module.getClassFinder() != null)) {
    List<Class<?>> classes;
    classes = module.getClassFinder().findAnnotatedClasses(DataSourceDefinitions.class);
    if (classes != null) {
      for (Class<?> clazz : classes) {
        DataSourceDefinitions dsDefinitions = clazz.getAnnotation(DataSourceDefinitions.class);
        for (DataSourceDefinition dsDefinition : dsDefinitions.value()) {
          processDefinition(dsDefinition, specDD);
        }
      }
    }
    classes = module.getClassFinder().findAnnotatedClasses(DataSourceDefinition.class);
    if (classes != null) {
      for (Class<?> clazz : classes) {
        DataSourceDefinition dsDefinition = clazz.getAnnotation(DataSourceDefinition.class);
        processDefinition(dsDefinition, specDD);
      }
    }
  }
  // step 2: bind all defined data sources into jndi
  Collection<DataSource> dataSources = specDD.getDataSource();
  if (dataSources != null) {
    for (DataSource dataSource: dataSources) {
      addDataSourceGBean(module, sharedContext, dataSource);
    }
  }
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-openejb-builder

if ((module != null) && (module.getClassFinder() != null)) {
  processAnnotations(specDD, module);

代码示例来源:origin: org.apache.geronimo.modules/geronimo-naming-builder

AbstractFinder classFinder = module.getClassFinder();
if (module.getClassFinder() != null) {
  List<Method> postConstructs = classFinder.findAnnotatedMethods(PostConstruct.class);
  for (Method m : postConstructs) {

代码示例来源:origin: org.apache.geronimo.modules/geronimo-naming-builder

if ((module != null) && (module.getClassFinder() != null)) {
  processAnnotations(specDD, module);

代码示例来源:origin: org.apache.geronimo.modules/geronimo-naming-builder

public void buildNaming(JndiConsumer specDD, XmlObject plan, Module module, Map<EARContext.Key, Object> sharedContext) throws DeploymentException {
  if ((module != null) && (module.getClassFinder() != null)) {
      ResourceAnnotationHelper.processAnnotations(specDD, module.getClassFinder(), EnvEntryRefProcessor.INSTANCE);

代码示例来源:origin: org.apache.geronimo.modules/geronimo-connector-builder

public void buildNaming(XmlObject specDD, XmlObject plan, Module module, Map componentContext) throws DeploymentException {
  if ((module != null) && (module.getClassFinder() != null)) {
      ResourceAnnotationHelper.processAnnotations(module.getAnnotatedApp(), module.getClassFinder(), ResourceRefProcessor.INSTANCE);

代码示例来源:origin: org.apache.geronimo.modules/geronimo-connector-builder-1_6

public void buildNaming(JndiConsumer specDD, XmlObject plan, Module module, Map<EARContext.Key, Object> sharedContext) throws DeploymentException {
  if ((module != null) && (module.getClassFinder() != null)) {
      ResourceAnnotationHelper.processAnnotations(specDD, module.getClassFinder(), ResourceRefProcessor.INSTANCE);

代码示例来源:origin: org.apache.geronimo.modules/geronimo-persistence-jpa20-builder

if (module.getClassFinder() != null) {
  processAnnotations(specDD, module);

代码示例来源:origin: org.apache.geronimo.modules/geronimo-concurrent-builder

if (module.getClassFinder() != null) {
    ResourceAnnotationHelper.processAnnotations(module.getAnnotatedApp(), module.getClassFinder(), processor);
  } catch (Exception e) {
    log.warn("Unable to process @Resource annotations for module " + module.getName(), e);

代码示例来源:origin: org.apache.geronimo.modules/geronimo-connector-builder-1_6

if (module.getClassFinder() != null) {
    ResourceAnnotationHelper.processAnnotations(specDD, module.getClassFinder(), new AdminObjectRefProcessor(refMap, messageDestinations, module.getEarContext()));

代码示例来源:origin: org.apache.geronimo.modules/geronimo-connector-builder

if (module.getClassFinder() != null) {
    ResourceAnnotationHelper.processAnnotations(module.getAnnotatedApp(), module.getClassFinder(), new AdminObjectRefProcessor(refMap, messageDestinations, module.getEarContext()));

相关文章