Refine search
/** * * @param index */ public WeldClassFileServices(CompositeIndex index, ClassLoader moduleClassLoader) { if (index == null) { throw WeldLogger.ROOT_LOGGER.cannotUseAtRuntime(ClassFileServices.class.getSimpleName()); } this.moduleClassLoader = moduleClassLoader; this.index = index; this.annotationClassAnnotationsCache = ComputingCacheBuilder.newBuilder().build(new AnnotationClassAnnotationLoader()); }
public SlimAnnotatedTypeStoreImpl() { this.typesByClass = ComputingCacheBuilder.newBuilder().build(new Function<Class<?>, Set<SlimAnnotatedType<?>>>() { @Override public Set<SlimAnnotatedType<?>> apply(Class<?> input) { return new CopyOnWriteArraySet<SlimAnnotatedType<?>>(); } }); }
/** * Constructor */ public NameBasedResolver(BeanManagerImpl manager, Iterable<? extends Bean<?>> allBeans) { this.resolvedNames = ComputingCacheBuilder.newBuilder().build(new NameToBeanSet(manager, allBeans)); }
/** * Constructor */ public NameBasedResolver(BeanManagerImpl manager, Iterable<? extends Bean<?>> allBeans) { this.resolvedNames = ComputingCacheBuilder.newBuilder().build(new NameToBeanSet(manager, allBeans)); }
/** * Constructor */ public NameBasedResolver(BeanManagerImpl manager, Iterable<? extends Bean<?>> allBeans) { this.resolvedNames = ComputingCacheBuilder.newBuilder().build(new NameToBeanSet(manager, allBeans)); }
public SpecializationAndEnablementRegistry() { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.specializedBeanResolvers = cacheBuilder.build(new SpecializedBeanResolverForBeanManager()); this.specializedBeans = ComputingCacheBuilder.newBuilder().build(new BeansSpecializedByBean()); }
/** * Constructor */ public NameBasedResolver(BeanManagerImpl manager, Iterable<? extends Bean<?>> allBeans) { this.resolvedNames = ComputingCacheBuilder.newBuilder().build(new NameToBeanSet(manager, allBeans)); }
public SpecializationAndEnablementRegistry() { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.specializedBeanResolvers = cacheBuilder.build(new SpecializedBeanResolverForBeanManager()); this.specializedBeans = ComputingCacheBuilder.newBuilder().build(new BeansSpecializedByBean()); }
public ClassTransformer(TypeStore typeStore, SharedObjectCache cache, ReflectionCache reflectionCache, String contextId) { this.contextId = contextId; this.backedAnnotatedTypes = ComputingCacheBuilder.newBuilder().setWeakValues().build(new TransformClassToBackedAnnotatedType()); this.enhancedAnnotatedTypes = ComputingCacheBuilder.newBuilder().build(new TransformSlimAnnotatedTypeToEnhancedAnnotatedType()); this.annotations = ComputingCacheBuilder.newBuilder().build(new TransformClassToWeldAnnotation()); this.typeStore = typeStore; this.cache = cache; this.reflectionCache = reflectionCache; this.slimAnnotatedTypesById = new ConcurrentHashMap<AnnotatedTypeIdentifier, SlimAnnotatedType<?>>(); }
public ClassTransformer(TypeStore typeStore, SharedObjectCache cache, ReflectionCache reflectionCache, String contextId) { this.contextId = contextId; this.backedAnnotatedTypes = ComputingCacheBuilder.newBuilder().setWeakValues().build(new TransformClassToBackedAnnotatedType()); this.enhancedAnnotatedTypes = ComputingCacheBuilder.newBuilder().build(new TransformSlimAnnotatedTypeToEnhancedAnnotatedType()); this.annotations = ComputingCacheBuilder.newBuilder().build(new TransformClassToWeldAnnotation()); this.typeStore = typeStore; this.cache = cache; this.reflectionCache = reflectionCache; this.slimAnnotatedTypesById = new ConcurrentHashMap<AnnotatedTypeIdentifier, SlimAnnotatedType<?>>(); }
public DefaultReflectionCache(TypeStore store) { this.store = store; ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.annotations = cacheBuilder.build(ANNOTATIONS_FUNCTION); this.declaredAnnotations = cacheBuilder.build(DECLARED_ANNOTATIONS_FUNCTION); this.backedAnnotatedTypeAnnotations = cacheBuilder.build(new BackedAnnotatedTypeAnnotationsFunction()); this.annotationClasses = cacheBuilder.build(new AnnotationClassFunction()); }
public DefaultReflectionCache(TypeStore store) { this.store = store; ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.annotations = cacheBuilder.build(ANNOTATIONS_FUNCTION); this.declaredAnnotations = cacheBuilder.build(DECLARED_ANNOTATIONS_FUNCTION); this.backedAnnotatedTypeAnnotations = cacheBuilder.build(new BackedAnnotatedTypeAnnotationsFunction()); this.annotationClasses = cacheBuilder.build(new AnnotationClassFunction()); }
public DefaultReflectionCache(TypeStore store) { this.store = store; ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.annotations = cacheBuilder.build(ANNOTATIONS_FUNCTION); this.declaredAnnotations = cacheBuilder.build(DECLARED_ANNOTATIONS_FUNCTION); this.backedAnnotatedTypeAnnotations = cacheBuilder.build(new BackedAnnotatedTypeAnnotationsFunction()); this.annotationClasses = cacheBuilder.build(new AnnotationClassFunction()); }
/** * * @param contextId */ public ClientProxyProvider(String contextId) { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.beanTypeClosureProxyPool = cacheBuilder.build(new CreateClientProxy()); this.requestedTypeClosureProxyPool = cacheBuilder.build(new CreateClientProxyForType()); this.contextId = contextId; }
/** * * @param contextId */ public ClientProxyProvider(String contextId) { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.beanTypeClosureProxyPool = cacheBuilder.build(new CreateClientProxy()); this.requestedTypeClosureProxyPool = cacheBuilder.build(new CreateClientProxyForType()); this.contextId = contextId; }
/** * * @param contextId */ public ClientProxyProvider(String contextId) { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.beanTypeClosureProxyPool = cacheBuilder.build(new CreateClientProxy()); this.requestedTypeClosureProxyPool = cacheBuilder.build(new CreateClientProxyForType()); this.contextId = contextId; }
/** * * @param contextId */ public ClientProxyProvider(String contextId) { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.beanTypeClosureProxyPool = cacheBuilder.build(new CreateClientProxy()); this.requestedTypeClosureProxyPool = cacheBuilder.build(new CreateClientProxyForType()); this.contextId = contextId; }
public SpecializationAndEnablementRegistry() { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.specializedBeanResolvers = cacheBuilder.build(new SpecializedBeanResolverForBeanManager()); this.specializedBeans = cacheBuilder.build(new BeansSpecializedByBean()); }
/** * * @param contextId */ public ClientProxyProvider(String contextId) { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.beanTypeClosureProxyPool = cacheBuilder.build(new CreateClientProxy()); this.requestedTypeClosureProxyPool = cacheBuilder.build(new CreateClientProxyForType()); this.contextId = contextId; }
public SimpleCDI(Container container) { this.container = container; beanManagers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToBeanManager()); }