public WeldSEProvider() { this.containers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToWeldContainer()); ImmutableSet.Builder<String> names = ImmutableSet.builder(); for (Class<?> clazz = getClass(); clazz != Object.class; clazz = clazz.getSuperclass()) { names.add(clazz.getName()); } names.add(Unmanaged.class.getName()); names.add(CDI.class.getName()); this.knownClassNames = names.build(); }
public SimpleCDI(Container container) { this.container = container; beanManagers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToBeanManager()); }
public SimpleCDI(Container container) { this.container = container; beanManagers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToBeanManager()); }
public WeldSEProvider() { this.containers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToWeldContainer()); ImmutableSet.Builder<String> names = ImmutableSet.builder(); for (Class<?> clazz = getClass(); clazz != Object.class; clazz = clazz.getSuperclass()) { names.add(clazz.getName()); } names.add(Unmanaged.class.getName()); names.add(CDI.class.getName()); this.knownClassNames = names.build(); }
public WeldSEProvider() { this.containers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToWeldContainer()); ImmutableSet.Builder<String> names = ImmutableSet.builder(); for (Class<?> clazz = getClass(); clazz != Object.class; clazz = clazz.getSuperclass()) { names.add(clazz.getName()); } names.add(Unmanaged.class.getName()); names.add(CDI.class.getName()); names.add(CompositeCDIProvider.class.getName()); this.knownClassNames = names.build(); }
public SimpleCDI(Container container) { this.container = container; beanManagers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToBeanManager()); }
public WeldSEProvider() { this.containers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToWeldContainer()); ImmutableSet.Builder<String> names = ImmutableSet.builder(); for (Class<?> clazz = getClass(); clazz != Object.class; clazz = clazz.getSuperclass()) { names.add(clazz.getName()); } names.add(Unmanaged.class.getName()); names.add(CDI.class.getName()); this.knownClassNames = names.build(); }
public SimpleCDI(Container container) { this.container = container; beanManagers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToBeanManager()); }
public SimpleCDI(Container container) { this.container = container; beanManagers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToBeanManager()); }
public SimpleCDI(Container container) { this.container = container; beanManagers = ComputingCacheBuilder.newBuilder().setWeakValues().build(new ClassNameToBeanManager()); }
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 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 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<?>>(); }
protected AbstractInjector(WeldManager manager) { Preconditions.checkArgumentNotNull(manager, "manager"); this.manager = manager; this.cache = ComputingCacheBuilder.newBuilder().setWeakValues().build(clazz -> { AnnotatedType<?> type = manager.createAnnotatedType(clazz); return manager.createInjectionTargetBuilder(type) .setResourceInjectionEnabled(false) .setTargetClassLifecycleCallbacksEnabled(false) .build(); }); }
protected AbstractInjector(WeldManager manager) { Preconditions.checkArgumentNotNull(manager, "manager"); this.manager = manager; this.cache = ComputingCacheBuilder.newBuilder().setWeakValues().build(clazz -> { AnnotatedType<?> type = manager.createAnnotatedType(clazz); return manager.createInjectionTargetBuilder(type) .setResourceInjectionEnabled(false) .setTargetClassLifecycleCallbacksEnabled(false) .build(); }); }
protected AbstractInjector(WeldManager manager) { Preconditions.checkArgumentNotNull(manager, "manager"); this.manager = manager; this.cache = ComputingCacheBuilder.newBuilder().setWeakValues().build(clazz -> { AnnotatedType<?> type = manager.createAnnotatedType(clazz); return manager.createInjectionTargetBuilder(type) .setResourceInjectionEnabled(false) .setTargetClassLifecycleCallbacksEnabled(false) .build(); }); }