@Override public <S extends Service> S getRequired(Class<S> type) { return delegate().getRequired(type); }
@Override public <S extends Service> S getRequired(Class<S> type) { return delegate().getRequired(type); }
@Override public <S extends Service> S getRequired(Class<S> type) { return delegate().getRequired(type); }
@Override public <S extends Service> S getRequired(Class<S> type) { return delegate().getRequired(type); }
@Override public <S extends Service> S getRequired(Class<S> type) { return delegate().getRequired(type); }
@Override public <S extends Service> S getRequired(Class<S> type) { return delegate().getRequired(type); }
private BeanIterator(Set<Bean<?>> beans) { this.delegate = beans.iterator(); }
private BeanIterator(Set<Bean<?>> beans) { this.delegate = beans.iterator(); }
private BeanIterator(Set<Bean<?>> beans) { this.delegate = beans.iterator(); }
private BeanIterator(Set<Bean<?>> beans) { this.delegate = beans.iterator(); }
private BeanIterator(Set<Bean<?>> beans) { this.delegate = beans.iterator(); }
public boolean associate(HttpServletRequest request) { // At this point the bean store should never be set - see also HttpContextLifecycle.nestedInvocationGuard if (getBeanStore() != null) { ContextLogger.LOG.beanStoreLeakDuringAssociation(this.getClass().getName(), request); } // We always associate a new bean store to avoid possible leaks (security threats) setBeanStore(new LazySessionBeanStore(request, namingScheme, getServiceRegistry().getRequired(WeldConfiguration.class).getBooleanProperty( ConfigurationKey.CONTEXT_ATTRIBUTES_LAZY_FETCH), getServiceRegistry())); checkBeanIdentifierIndexConsistency(request); return true; }
public boolean associate(HttpServletRequest request) { // At this point the bean store should never be set - see also HttpContextLifecycle.nestedInvocationGuard if (getBeanStore() != null) { ContextLogger.LOG.beanStoreLeakDuringAssociation(this.getClass().getName(), request); } // We always associate a new bean store to avoid possible leaks (security threats) setBeanStore(new LazySessionBeanStore(request, namingScheme, getServiceRegistry().getRequired(WeldConfiguration.class).getBooleanProperty( ConfigurationKey.CONTEXT_ATTRIBUTES_LAZY_FETCH), getServiceRegistry())); checkBeanIdentifierIndexConsistency(request); return true; }
public boolean associate(HttpServletRequest request) { // At this point the bean store should never be set - see also HttpContextLifecycle.nestedInvocationGuard if (getBeanStore() != null) { ContextLogger.LOG.beanStoreLeakDuringAssociation(this.getClass().getName(), request); } // We always associate a new bean store to avoid possible leaks (security threats) setBeanStore(new LazySessionBeanStore(request, namingScheme, getServiceRegistry().getRequired(WeldConfiguration.class).getBooleanProperty( ConfigurationKey.CONTEXT_ATTRIBUTES_LAZY_FETCH), getServiceRegistry())); checkBeanIdentifierIndexConsistency(request); return true; }
public AbstractBeanDeployer(BeanManagerImpl manager, ServiceRegistry services, E environment) { this.manager = manager; this.services = services; this.environment = environment; this.containerLifecycleEvents = manager.getServices().get(ContainerLifecycleEvents.class); this.classTransformer = services.get(ClassTransformer.class); this.slimAnnotatedTypeStore = services.get(SlimAnnotatedTypeStore.class); this.specializationAndEnablementRegistry = services.get(SpecializationAndEnablementRegistry.class); this.ejbSupport = manager.getServices().getRequired(EjbSupport.class); }
public AbstractBeanDeployer(BeanManagerImpl manager, ServiceRegistry services, E environment) { this.manager = manager; this.services = services; this.environment = environment; this.containerLifecycleEvents = manager.getServices().get(ContainerLifecycleEvents.class); this.classTransformer = services.get(ClassTransformer.class); this.slimAnnotatedTypeStore = services.get(SlimAnnotatedTypeStore.class); this.specializationAndEnablementRegistry = services.get(SpecializationAndEnablementRegistry.class); this.ejbSupport = manager.getServices().getRequired(EjbSupport.class); }
public AbstractBeanDeployer(BeanManagerImpl manager, ServiceRegistry services, E environment) { this.manager = manager; this.services = services; this.environment = environment; this.containerLifecycleEvents = manager.getServices().get(ContainerLifecycleEvents.class); this.classTransformer = services.get(ClassTransformer.class); this.slimAnnotatedTypeStore = services.get(SlimAnnotatedTypeStore.class); this.specializationAndEnablementRegistry = services.get(SpecializationAndEnablementRegistry.class); this.ejbSupport = manager.getServices().getRequired(EjbSupport.class); }
public AbstractBeanDeployer(BeanManagerImpl manager, ServiceRegistry services, E environment) { this.manager = manager; this.services = services; this.environment = environment; this.containerLifecycleEvents = manager.getServices().get(ContainerLifecycleEvents.class); this.classTransformer = services.get(ClassTransformer.class); this.slimAnnotatedTypeStore = services.get(SlimAnnotatedTypeStore.class); this.specializationAndEnablementRegistry = services.get(SpecializationAndEnablementRegistry.class); this.ejbSupport = manager.getServices().getRequired(EjbSupport.class); }
public AbstractBeanDeployer(BeanManagerImpl manager, ServiceRegistry services, E environment) { this.manager = manager; this.services = services; this.environment = environment; this.containerLifecycleEvents = manager.getServices().get(ContainerLifecycleEvents.class); this.classTransformer = services.get(ClassTransformer.class); this.slimAnnotatedTypeStore = services.get(SlimAnnotatedTypeStore.class); this.specializationAndEnablementRegistry = services.get(SpecializationAndEnablementRegistry.class); this.ejbSupport = manager.getServices().getRequired(EjbSupport.class); }
public void registerCdiInterceptorsForMessageDrivenBeans(BeanDeployerEnvironment environment, BeanManagerImpl manager) { for (InternalEjbDescriptor<?> descriptor : getEjbDescriptors()) { if (descriptor.isMessageDriven()) { EnhancedAnnotatedType<?> type = manager.getServices().getRequired(ClassTransformer.class).getEnhancedAnnotatedType(descriptor.getBeanClass(), manager.getId()); if (!manager.getInterceptorModelRegistry().containsKey(type.slim())) { InterceptionModelInitializer.of(manager, type, null).init(); } InterceptionModel model = manager.getInterceptorModelRegistry().get(type.slim()); if (model != null) { ejbServices.registerInterceptors(descriptor.delegate(), new InterceptorBindingsAdapter(model)); } } } }