protected void searchForNewBeanDeclarations(Iterable<? extends AbstractBean<?, ?>> beans) { for (AbstractBean<?, ?> bean : beans) { getEnvironment().addNewBeansFromInjectionPoints(bean); } }
private <T> SlimAnnotatedTypeContext<T> addIfNotNull(SlimAnnotatedTypeContext<T> ctx) { if (ctx != null) { getEnvironment().addAnnotatedType(ctx); } return ctx; }
private <T> SlimAnnotatedTypeContext<T> addIfNotNull(SlimAnnotatedTypeContext<T> ctx) { if (ctx != null) { getEnvironment().addAnnotatedType(ctx); } return ctx; }
protected void searchForNewBeanDeclarations(Iterable<? extends AbstractBean<?, ?>> beans) { for (AbstractBean<?, ?> bean : beans) { getEnvironment().addNewBeansFromInjectionPoints(bean); } }
protected void searchForNewBeanDeclarations(Iterable<? extends AbstractBean<?, ?>> beans) { for (AbstractBean<?, ?> bean : beans) { getEnvironment().addNewBeansFromInjectionPoints(bean); } }
private <T> SlimAnnotatedTypeContext<T> addIfNotNull(SlimAnnotatedTypeContext<T> ctx) { if (ctx != null) { getEnvironment().addAnnotatedType(ctx); } return ctx; }
public void createProducersAndObservers() { for (AbstractClassBean<?> bean : getEnvironment().getClassBeans()) { createObserversProducersDisposers(bean); } }
public void createProducersAndObservers() { for (AbstractClassBean<?> bean : getEnvironment().getClassBeans()) { createObserversProducersDisposers(bean); } }
public void processProducerAttributes() { processBeans(getEnvironment().getProducerFields()); searchForNewBeanDeclarations(getEnvironment().getProducerFields()); // process BeanAttributes for producer methods preInitializeBeans(getEnvironment().getProducerMethodBeans()); processBeans(getEnvironment().getProducerMethodBeans()); searchForNewBeanDeclarations(getEnvironment().getProducerMethodBeans()); }
public void createProducersAndObservers() { for (AbstractClassBean<?> bean : getEnvironment().getClassBeans()) { createObserversProducersDisposers(bean); } }
public void createNewBeans() { for (Type type : getEnvironment().getNewBeanTypes()) { Class<?> clazz = Reflections.getRawType(type); if (!ejbSupport.isEjb(clazz)) { createNewManagedBean(clazz, type); } } ejbSupport.createNewSessionBeans(getEnvironment(), getManager()); }
public void createClassBeans() { SetMultimap<Class<?>, SlimAnnotatedType<?>> otherWeldClasses = SetMultimap.newSetMultimap(); for (SlimAnnotatedTypeContext<?> ctx : getEnvironment().getAnnotatedTypes()) { createClassBean(ctx.getAnnotatedType(), otherWeldClasses); } // create session beans ejbSupport.createSessionBeans(getEnvironment(), otherWeldClasses, getManager()); }
public void createNewBeans() { for (Type type : getEnvironment().getNewBeanTypes()) { Class<?> clazz = Reflections.getRawType(type); if (!ejbSupport.isEjb(clazz)) { createNewManagedBean(clazz, type); } } ejbSupport.createNewSessionBeans(getEnvironment(), getManager()); }
public void registerAnnotatedTypes() { for (SlimAnnotatedTypeContext<?> ctx : getEnvironment().getAnnotatedTypes()) { annotatedTypeStore.put(ctx.getAnnotatedType()); } }
public void createClassBeans() { SetMultimap<Class<?>, SlimAnnotatedType<?>> otherWeldClasses = SetMultimap.newSetMultimap(); for (SlimAnnotatedTypeContext<?> ctx : getEnvironment().getAnnotatedTypes()) { createClassBean(ctx.getAnnotatedType(), otherWeldClasses); } // create session beans ejbSupport.createSessionBeans(getEnvironment(), otherWeldClasses, getManager()); }
public void registerAnnotatedTypes() { for (SlimAnnotatedTypeContext<?> ctx : getEnvironment().getAnnotatedTypes()) { annotatedTypeStore.put(ctx.getAnnotatedType()); } }
public void createClassBeans() { SetMultimap<Class<?>, SlimAnnotatedType<?>> otherWeldClasses = SetMultimap.newSetMultimap(); for (SlimAnnotatedTypeContext<?> ctx : getEnvironment().getAnnotatedTypes()) { createClassBean(ctx.getAnnotatedType(), otherWeldClasses); } // create session beans ejbSupport.createSessionBeans(getEnvironment(), otherWeldClasses, getManager()); }
/** * Loads a given class, creates a {@link SlimAnnotatedTypeContext} for it and stores it in {@link BeanDeployerEnvironment}. */ public BeanDeployer addClass(String className, AnnotatedTypeLoader loader) { SlimAnnotatedTypeContext<?> ctx = loader.loadAnnotatedType(className, getManager().getId()); if (ctx != null) { getEnvironment().addAnnotatedType(ctx); } return this; }
public <T> BeanDeployer addSyntheticClass(AnnotatedType<T> source, Extension extension, String suffix) { if (suffix == null) { suffix = AnnotatedTypes.createTypeId(source); } getEnvironment().addSyntheticAnnotatedType(classTransformer.getUnbackedAnnotatedType(source, getManager().getId(), suffix), extension); return this; }
public <T> BeanDeployer addSyntheticClass(AnnotatedType<T> source, Extension extension, String suffix) { if (suffix == null) { suffix = AnnotatedTypes.createTypeId(source); } getEnvironment().addSyntheticAnnotatedType(classTransformer.getUnbackedAnnotatedType(source, getManager().getId(), suffix), extension); return this; }