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<?>>(); } }); }
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()); }
/** * Constructor */ public NameBasedResolver(BeanManagerImpl manager, Iterable<? extends Bean<?>> allBeans) { this.resolvedNames = ComputingCacheBuilder.newBuilder().build(new NameToBeanSet(manager, allBeans)); }
/** * * @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; }
/** * Constructor */ public NameBasedResolver(BeanManagerImpl manager, Iterable<? extends Bean<?>> allBeans) { this.resolvedNames = ComputingCacheBuilder.newBuilder().build(new NameToBeanSet(manager, allBeans)); }
/** * * @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; }
/** * 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()); }
/** * * @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()); }
/** * 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()); }
/** * * @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 MetaAnnotationStore(ClassTransformer classTransformer) { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.stereotypes = cacheBuilder.build(new StereotypeFunction(classTransformer)); this.scopes = cacheBuilder.build(new ScopeFunction(classTransformer)); this.qualifiers = cacheBuilder.build(new QualifierFunction(classTransformer)); this.interceptorBindings = cacheBuilder.build(new InterceptorBindingFunction(classTransformer)); this.qualifierInstanceCache = cacheBuilder.build(new QualifierInstanceFunction(this)); this.sharedObjectCache = classTransformer.getSharedObjectCache(); }
public MetaAnnotationStore(ClassTransformer classTransformer) { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.stereotypes = cacheBuilder.build(new StereotypeFunction(classTransformer)); this.scopes = cacheBuilder.build(new ScopeFunction(classTransformer)); this.qualifiers = cacheBuilder.build(new QualifierFunction(classTransformer)); this.interceptorBindings = cacheBuilder.build(new InterceptorBindingFunction(classTransformer)); this.qualifierInstanceCache = cacheBuilder.build(new QualifierInstanceFunction(this)); this.sharedObjectCache = classTransformer.getSharedObjectCache(); }
public MetaAnnotationStore(ClassTransformer classTransformer) { ComputingCacheBuilder cacheBuilder = ComputingCacheBuilder.newBuilder(); this.stereotypes = cacheBuilder.build(new StereotypeFunction(classTransformer)); this.scopes = cacheBuilder.build(new ScopeFunction(classTransformer)); this.qualifiers = cacheBuilder.build(new QualifierFunction(classTransformer)); this.interceptorBindings = cacheBuilder.build(new InterceptorBindingFunction(classTransformer)); this.qualifierInstanceCache = cacheBuilder.build(new QualifierInstanceFunction(this)); this.sharedObjectCache = classTransformer.getSharedObjectCache(); }