gpt4 book ai didi

org.jboss.weld.environment.deployment.WeldResourceLoader.getClassLoader()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 08:17:05 27 4
gpt4 key购买 nike

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

WeldResourceLoader.getClassLoader介绍

暂无

代码示例

代码示例来源:origin: weld/core

public Class<?> classForName(String name) {
  try {
    return getClassLoader().loadClass(name);
  } catch (ClassNotFoundException e) {
    throw new ResourceLoadingException(e);
  } catch (LinkageError e) {
    throw new ResourceLoadingException(e);
  }
}

代码示例来源:origin: weld/core

public Class<?> classForName(String name) {
  try {
    return getClassLoader().loadClass(name);
  } catch (ClassNotFoundException e) {
    throw new ResourceLoadingException(e);
  } catch (LinkageError e) {
    throw new ResourceLoadingException(e);
  }
}

代码示例来源:origin: org.jboss.weld.se/weld-se

public Class<?> classForName(String name) {
  try {
    return getClassLoader().loadClass(name);
  } catch (ClassNotFoundException e) {
    throw new ResourceLoadingException(e);
  } catch (LinkageError e) {
    throw new ResourceLoadingException(e);
  }
}

代码示例来源:origin: ops4j/org.ops4j.pax.exam2

public Class<?> classForName(String name) {
  try {
    return getClassLoader().loadClass(name);
  }
  catch (ClassNotFoundException e) {
    throw new ResourceLoadingException(e);
  }
  catch (LinkageError e) {
    throw new ResourceLoadingException(e);
  }
}

代码示例来源:origin: weld/core

public Class<?> classForName(String name) {
  try {
    return getClassLoader().loadClass(name);
  } catch (ClassNotFoundException e) {
    throw new ResourceLoadingException(e);
  } catch (LinkageError e) {
    throw new ResourceLoadingException(e);
  }
}

代码示例来源:origin: org.jboss.weld.environment/weld-environment-common

public Class<?> classForName(String name) {
  try {
    return getClassLoader().loadClass(name);
  } catch (ClassNotFoundException e) {
    throw new ResourceLoadingException(e);
  } catch (LinkageError e) {
    throw new ResourceLoadingException(e);
  }
}

代码示例来源:origin: org.jboss.weld.se/weld-se-shaded

public Class<?> classForName(String name) {
  try {
    return getClassLoader().loadClass(name);
  } catch (ClassNotFoundException e) {
    throw new ResourceLoadingException(e);
  } catch (LinkageError e) {
    throw new ResourceLoadingException(e);
  }
}

代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded

public Class<?> classForName(String name) {
  try {
    return getClassLoader().loadClass(name);
  } catch (ClassNotFoundException e) {
    throw new ResourceLoadingException(e);
  } catch (LinkageError e) {
    throw new ResourceLoadingException(e);
  }
}

代码示例来源:origin: org.jboss.weld.se/weld-se

ClassLoader jnlpClassLoader = WeldResourceLoader.getClassLoader();
Class<?> jnlpClClass = jnlpClassLoader.getClass();

代码示例来源:origin: weld/core

ClassLoader jnlpClassLoader = WeldResourceLoader.getClassLoader();
Class<?> jnlpClClass = jnlpClassLoader.getClass();

代码示例来源:origin: org.jboss.weld.se/weld-se-shaded

ClassLoader jnlpClassLoader = WeldResourceLoader.getClassLoader();
Class<?> jnlpClClass = jnlpClassLoader.getClass();

代码示例来源:origin: weld/core

ClassLoader jnlpClassLoader = WeldResourceLoader.getClassLoader();
Class<?> jnlpClClass = jnlpClassLoader.getClass();

代码示例来源:origin: org.jboss.weld.se/weld-se

public JandexClassFileServices(JandexDiscoveryStrategy strategy) {
  index = strategy.getCompositeJandexIndex();
  if (index == null) {
    throw CommonLogger.LOG.jandexIndexNotCreated(ClassFileServices.class.getSimpleName());
  }
  this.classLoader = WeldResourceLoader.getClassLoader();
  this.annotationClassAnnotationsCache = ComputingCacheBuilder.newBuilder().build(new AnnotationClassAnnotationLoader());
}

代码示例来源:origin: weld/core

public JandexClassFileServices(JandexDiscoveryStrategy strategy) {
  index = strategy.getCompositeJandexIndex();
  if (index == null) {
    throw CommonLogger.LOG.jandexIndexNotCreated(ClassFileServices.class.getSimpleName());
  }
  this.classLoader = WeldResourceLoader.getClassLoader();
  this.annotationClassAnnotationsCache = ComputingCacheBuilder.newBuilder().build(new AnnotationClassAnnotationLoader());
}

代码示例来源:origin: weld/core

public JandexClassFileServices(JandexDiscoveryStrategy strategy) {
  index = strategy.getCompositeJandexIndex();
  if (index == null) {
    throw CommonLogger.LOG.jandexIndexNotCreated(ClassFileServices.class.getSimpleName());
  }
  this.classLoader = WeldResourceLoader.getClassLoader();
  this.annotationClassAnnotationsCache = ComputingCacheBuilder.newBuilder().build(new AnnotationClassAnnotationLoader());
}

代码示例来源:origin: weld/core

public JandexClassFileServices(JandexDiscoveryStrategy strategy) {
  index = strategy.getCompositeJandexIndex();
  if (index == null) {
    throw CommonLogger.LOG.jandexIndexNotCreated(ClassFileServices.class.getSimpleName());
  }
  this.classLoader = WeldResourceLoader.getClassLoader();
  this.annotationClassAnnotationsCache = ComputingCacheBuilder.newBuilder().build(new AnnotationClassAnnotationLoader());
}

代码示例来源:origin: org.jboss.weld.se/weld-se-shaded

public JandexClassFileServices(JandexDiscoveryStrategy strategy) {
  index = strategy.getCompositeJandexIndex();
  if (index == null) {
    throw CommonLogger.LOG.jandexIndexNotCreated(ClassFileServices.class.getSimpleName());
  }
  this.classLoader = WeldResourceLoader.getClassLoader();
  this.annotationClassAnnotationsCache = ComputingCacheBuilder.newBuilder().build(new AnnotationClassAnnotationLoader());
}

代码示例来源:origin: org.jboss.weld.environment/weld-environment-common

public JandexClassFileServices(JandexDiscoveryStrategy strategy) {
  index = strategy.getCompositeJandexIndex();
  if (index == null) {
    throw CommonLogger.LOG.jandexIndexNotCreated(ClassFileServices.class.getSimpleName());
  }
  this.classLoader = WeldResourceLoader.getClassLoader();
  this.annotationClassAnnotationsCache = ComputingCacheBuilder.newBuilder().build(new AnnotationClassAnnotationLoader());
}

代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded

public JandexClassFileServices(JandexDiscoveryStrategy strategy) {
  index = strategy.getCompositeJandexIndex();
  if (index == null) {
    throw CommonLogger.LOG.jandexIndexNotCreated(ClassFileServices.class.getSimpleName());
  }
  this.classLoader = WeldResourceLoader.getClassLoader();
  this.annotationClassAnnotationsCache = ComputingCacheBuilder.newBuilder().build(new AnnotationClassAnnotationLoader());
}

代码示例来源:origin: net.unit8.weld/weld-prescan

@Override
protected Deployment createDeployment(ResourceLoader resourceLoader, CDI11Bootstrap bootstrap) {
  final Iterable<Metadata<Extension>> loadedExtensions = loadExtensions(WeldResourceLoader.getClassLoader(), bootstrap);
  final TypeDiscoveryConfiguration typeDiscoveryConfiguration = bootstrap.startExtensions(loadedExtensions);
  Deployment deployment=null;
  DiscoveryStrategy strategy = DiscoveryStrategyFactory.create(
      resourceLoader,
      bootstrap,
      ImmutableSet.<Class<? extends Annotation>>builder().addAll(typeDiscoveryConfiguration.getKnownBeanDefiningAnnotations())
          // Add ThreadScoped manually as Weld SE doesn't support implicit bean archives without beans.xml
          .add(ThreadScoped.class).build());
  Set<WeldBeanDeploymentArchive> discoveredArchives = loadArchives();
  /*
  String isolation = AccessController.doPrivileged(new GetSystemPropertyAction(ARCHIVE_ISOLATION_SYSTEM_PROPERTY));
  if (isolation != null && Boolean.valueOf(isolation).equals(Boolean.FALSE)) {
    WeldBeanDeploymentArchive archive = WeldBeanDeploymentArchive.merge(bootstrap, discoveredArchives);
    deployment = new WeldDeployment(resourceLoader, bootstrap, Collections.singleton(archive), loadedExtensions);
    CommonLogger.LOG.archiveIsolationDisabled();
  } else {
    deployment=  new WeldDeployment(resourceLoader, bootstrap, discoveredArchives, loadedExtensions);
    CommonLogger.LOG.archiveIsolationEnabled();
  }
  */
  deployment=  new WeldDeployment(resourceLoader, bootstrap, discoveredArchives, loadedExtensions);
  if(strategy.getClassFileServices() != null) {
    deployment.getServices().add(ClassFileServices.class, strategy.getClassFileServices());
  }
  return deployment;
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com