gpt4 book ai didi

org.jboss.weld.environment.deployment.WeldResourceLoader类的使用及代码示例

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

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

WeldResourceLoader介绍

[英]A simple resource loader. Uses WeldResourceLoader's classloader if the Thread Context Classloader isn't available
[中]一个简单的资源加载器。如果线程上下文类加载器不可用,则使用WeldResourceLoader的类加载器

代码示例

代码示例来源: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

WeldServletLifecycle() {
  resourceLoader = new WeldResourceLoader();
  weldListener = new WeldInitialListener();
}

代码示例来源: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

WeldServletLifecycle() {
  resourceLoader = new WeldResourceLoader();
  weldListener = new WeldInitialListener();
}

代码示例来源: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: org.jboss.weld.servlet/weld-servlet-shaded

WeldServletLifecycle() {
  resourceLoader = new WeldResourceLoader();
  weldListener = new WeldInitialListener();
}

代码示例来源: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

/**
 *
 * @param containerId The container identifier
 * @see Weld#containerId(String)
 */
public Weld(String containerId) {
  this.containerId = containerId;
  this.initializedContainers = new HashMap<String, WeldContainer>();
  this.beanClasses = new HashSet<String>();
  this.selectedAlternatives = new ArrayList<Metadata<String>>();
  this.selectedAlternativeStereotypes = new ArrayList<Metadata<String>>();
  this.enabledInterceptors = new ArrayList<Metadata<String>>();
  this.enabledDecorators = new ArrayList<Metadata<String>>();
  this.extensions = new HashSet<Metadata<Extension>>();
  this.properties = new HashMap<String, Object>();
  this.packages = new HashSet<PackInfo>();
  this.resourceLoader = new WeldResourceLoader();
  this.additionalServices = new HashMap<>();
}

代码示例来源: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: weld/core

/**
 *
 * @param containerId The container identifier
 * @see Weld#containerId(String)
 */
public Weld(String containerId) {
  this.containerId = containerId;
  this.initializedContainers = new HashMap<String, WeldContainer>();
  this.beanClasses = new HashSet<Class<?>>();
  this.selectedAlternatives = new ArrayList<Metadata<String>>();
  this.selectedAlternativeStereotypes = new ArrayList<Metadata<String>>();
  this.enabledInterceptors = new ArrayList<Metadata<String>>();
  this.enabledDecorators = new ArrayList<Metadata<String>>();
  this.extensions = new HashSet<Metadata<Extension>>();
  this.properties = new HashMap<String, Object>();
  this.packages = new HashSet<PackInfo>();
  this.containerLifecycleObservers = new LinkedList<>();
  this.resourceLoader = new WeldResourceLoader();
  this.additionalServices = new HashMap<>();
  this.extendedBeanDefiningAnnotations = new HashSet<>();
}

代码示例来源: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: org.jboss.weld.se/weld-se-shaded

/**
 *
 * @param containerId The container identifier
 * @see Weld#containerId(String)
 */
public Weld(String containerId) {
  this.containerId = containerId;
  this.initializedContainers = new HashMap<String, WeldContainer>();
  this.beanClasses = new HashSet<Class<?>>();
  this.selectedAlternatives = new ArrayList<Metadata<String>>();
  this.selectedAlternativeStereotypes = new ArrayList<Metadata<String>>();
  this.enabledInterceptors = new ArrayList<Metadata<String>>();
  this.enabledDecorators = new ArrayList<Metadata<String>>();
  this.extensions = new HashSet<Metadata<Extension>>();
  this.properties = new HashMap<String, Object>();
  this.packages = new HashSet<PackInfo>();
  this.containerLifecycleObservers = new LinkedList<>();
  this.resourceLoader = new WeldResourceLoader();
  this.additionalServices = new HashMap<>();
  this.extendedBeanDefiningAnnotations = new HashSet<>();
}

代码示例来源: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: weld/core

/**
 *
 * @param containerId The container identifier
 * @see Weld#containerId(String)
 */
public Weld(String containerId) {
  this.containerId = containerId;
  this.initializedContainers = new HashMap<String, WeldContainer>();
  this.beanClasses = new HashSet<Class<?>>();
  this.selectedAlternatives = new ArrayList<Metadata<String>>();
  this.selectedAlternativeStereotypes = new ArrayList<Metadata<String>>();
  this.enabledInterceptors = new ArrayList<Metadata<String>>();
  this.enabledDecorators = new ArrayList<Metadata<String>>();
  this.extensions = new HashSet<Metadata<Extension>>();
  this.properties = new HashMap<String, Object>();
  this.packages = new HashSet<PackInfo>();
  this.containerLifecycleObservers = new LinkedList<>();
  this.resourceLoader = new WeldResourceLoader();
  this.additionalServices = new HashMap<>();
  this.extendedBeanDefiningAnnotations = new HashSet<>();
}

代码示例来源: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: weld/core

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();

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