protected void processBeanAttributes(Iterable<? extends AbstractBean<?, ?>> beans) { if (!containerLifecycleEvents.isProcessBeanAttributesObserved()) { return; } if (!beans.iterator().hasNext()) { return; // exit recursion } Collection<AbstractBean<?, ?>> vetoedBeans = new HashSet<AbstractBean<?, ?>>(); Collection<AbstractBean<?, ?>> previouslySpecializedBeans = new HashSet<AbstractBean<?, ?>>(); for (AbstractBean<?, ?> bean : beans) { // fire ProcessBeanAttributes for class beans boolean vetoed = fireProcessBeanAttributes(bean); if (vetoed) { vetoedBeans.add(bean); } } // remove vetoed class beans for (AbstractBean<?, ?> bean : vetoedBeans) { if (bean.isSpecializing()) { previouslySpecializedBeans.addAll(specializationAndEnablementRegistry.resolveSpecializedBeans(bean)); specializationAndEnablementRegistry.vetoSpecializingBean(bean); } getEnvironment().vetoBean(bean); } // if a specializing bean was vetoed, let's process the specializing bean now processBeans(previouslySpecializedBeans); }
protected void processBeanAttributes(Iterable<? extends AbstractBean<?, ?>> beans) { if (!containerLifecycleEvents.isProcessBeanAttributesObserved()) { return; } if (!beans.iterator().hasNext()) { return; // exit recursion } Collection<AbstractBean<?, ?>> vetoedBeans = new HashSet<AbstractBean<?, ?>>(); Collection<AbstractBean<?, ?>> previouslySpecializedBeans = new HashSet<AbstractBean<?, ?>>(); for (AbstractBean<?, ?> bean : beans) { // fire ProcessBeanAttributes for class beans boolean vetoed = fireProcessBeanAttributes(bean); if (vetoed) { vetoedBeans.add(bean); } } // remove vetoed class beans for (AbstractBean<?, ?> bean : vetoedBeans) { if (bean.isSpecializing()) { previouslySpecializedBeans.addAll(specializationAndEnablementRegistry.resolveSpecializedBeans(bean)); specializationAndEnablementRegistry.vetoSpecializingBean(bean); } getEnvironment().vetoBean(bean); } // if a specializing bean was vetoed, let's process the specializing bean now processBeans(previouslySpecializedBeans); }
protected void processBeanAttributes(Iterable<? extends AbstractBean<?, ?>> beans) { if (!containerLifecycleEvents.isProcessBeanAttributesObserved()) { return; } if (!beans.iterator().hasNext()) { return; // exit recursion } Collection<AbstractBean<?, ?>> vetoedBeans = new HashSet<AbstractBean<?, ?>>(); Collection<AbstractBean<?, ?>> previouslySpecializedBeans = new HashSet<AbstractBean<?, ?>>(); for (AbstractBean<?, ?> bean : beans) { // fire ProcessBeanAttributes for class beans boolean vetoed = fireProcessBeanAttributes(bean); if (vetoed) { vetoedBeans.add(bean); } } // remove vetoed class beans for (AbstractBean<?, ?> bean : vetoedBeans) { if (bean.isSpecializing()) { previouslySpecializedBeans.addAll(specializationAndEnablementRegistry.resolveSpecializedBeans(bean)); specializationAndEnablementRegistry.vetoSpecializingBean(bean); } getEnvironment().vetoBean(bean); } // if a specializing bean was vetoed, let's process the specializing bean now processBeans(previouslySpecializedBeans); }
protected void processBeanAttributes(Iterable<? extends AbstractBean<?, ?>> beans) { if (!containerLifecycleEvents.isProcessBeanAttributesObserved()) { return; } if (!beans.iterator().hasNext()) { return; // exit recursion } Collection<AbstractBean<?, ?>> vetoedBeans = new HashSet<AbstractBean<?, ?>>(); Collection<AbstractBean<?, ?>> previouslySpecializedBeans = new HashSet<AbstractBean<?, ?>>(); for (AbstractBean<?, ?> bean : beans) { // fire ProcessBeanAttributes for class beans boolean vetoed = fireProcessBeanAttributes(bean); if (vetoed) { vetoedBeans.add(bean); } } // remove vetoed class beans for (AbstractBean<?, ?> bean : vetoedBeans) { if (bean.isSpecializing()) { previouslySpecializedBeans.addAll(specializationAndEnablementRegistry.resolveSpecializedBeans(bean)); specializationAndEnablementRegistry.vetoSpecializingBean(bean); } getEnvironment().vetoBean(bean); } // if a specializing bean was vetoed, let's process the specializing bean now processBeans(previouslySpecializedBeans); }
protected void processBeanAttributes(Iterable<? extends AbstractBean<?, ?>> beans) { if (!containerLifecycleEvents.isProcessBeanAttributesObserved()) { return; } if (!beans.iterator().hasNext()) { return; // exit recursion } Collection<AbstractBean<?, ?>> vetoedBeans = new HashSet<AbstractBean<?, ?>>(); Collection<AbstractBean<?, ?>> previouslySpecializedBeans = new HashSet<AbstractBean<?, ?>>(); for (AbstractBean<?, ?> bean : beans) { // fire ProcessBeanAttributes for class beans boolean vetoed = fireProcessBeanAttributes(bean); if (vetoed) { vetoedBeans.add(bean); } } // remove vetoed class beans for (AbstractBean<?, ?> bean : vetoedBeans) { if (bean.isSpecializing()) { previouslySpecializedBeans.addAll(specializationAndEnablementRegistry.resolveSpecializedBeans(bean)); specializationAndEnablementRegistry.vetoSpecializingBean(bean); } getEnvironment().vetoBean(bean); } // if a specializing bean was vetoed, let's process the specializing bean now processBeans(previouslySpecializedBeans); }
protected void processBeanAttributes(Iterable<? extends AbstractBean<?, ?>> beans) { if (!containerLifecycleEvents.isProcessBeanAttributesObserved()) { return; } if (!beans.iterator().hasNext()) { return; // exit recursion } Collection<AbstractBean<?, ?>> vetoedBeans = new HashSet<AbstractBean<?, ?>>(); Collection<AbstractBean<?, ?>> previouslySpecializedBeans = new HashSet<AbstractBean<?, ?>>(); for (AbstractBean<?, ?> bean : beans) { // fire ProcessBeanAttributes for class beans boolean vetoed = fireProcessBeanAttributes(bean); if (vetoed) { vetoedBeans.add(bean); } } // remove vetoed class beans for (AbstractBean<?, ?> bean : vetoedBeans) { if (bean.isSpecializing()) { previouslySpecializedBeans.addAll(specializationAndEnablementRegistry.resolveSpecializedBeans(bean)); specializationAndEnablementRegistry.vetoSpecializingBean(bean); } getEnvironment().vetoBean(bean); } // if a specializing bean was vetoed, let's process the specializing bean now processBeans(previouslySpecializedBeans); }
/** * Initializes specialization. This method is called before {@link ProcessBeanAttributes} is fired and also after the event * if the {@link BeanAttributes} have been altered. */ @Override public void preInitialize() { synchronized (this) { if (isSpecializing() && !preInitialized) { preInitialized = true; preSpecialize(); specialize(); checkSpecialization(); postSpecialize(); } } }
/** * Initializes specialization. This method is called before {@link ProcessBeanAttributes} is fired and also after the event * if the {@link BeanAttributes} have been altered. */ @Override public void preInitialize() { synchronized (this) { if (isSpecializing() && !preInitialized) { preInitialized = true; preSpecialize(); specialize(); checkSpecialization(); postSpecialize(); } } }
/** * Initializes specialization. This method is called before {@link ProcessBeanAttributes} is fired and also after the event * if the {@link BeanAttributes} have been altered. */ @Override public void preInitialize() { synchronized (this) { if (isSpecializing() && !preInitialized) { preInitialized = true; preSpecialize(); specialize(); checkSpecialization(); postSpecialize(); } } }
/** * Initializes specialization. This method is called before {@link ProcessBeanAttributes} is fired and also after the event * if the {@link BeanAttributes} have been altered. */ @Override public void preInitialize() { synchronized (this) { if (isSpecializing() && !preInitialized) { preInitialized = true; preSpecialize(); specialize(); checkSpecialization(); postSpecialize(); } } }
/** * Initializes specialization. This method is called before {@link ProcessBeanAttributes} is fired and also after the event * if the {@link BeanAttributes} have been altered. */ @Override public void preInitialize() { synchronized (this) { if (isSpecializing() && !preInitialized) { preInitialized = true; preSpecialize(); specialize(); checkSpecialization(); postSpecialize(); } } }
/** * Initializes specialization. This method is called before {@link ProcessBeanAttributes} is fired and also after the event * if the {@link BeanAttributes} have been altered. */ @Override public void preInitialize() { synchronized (this) { if (isSpecializing() && !preInitialized) { preInitialized = true; preSpecialize(); specialize(); checkSpecialization(); postSpecialize(); } } }
if (isSpecializing()) { boolean isNameDefined = getAnnotated().isAnnotationPresent(Named.class); String previousSpecializedBeanName = null;
if (isSpecializing()) { boolean isNameDefined = getAnnotated().isAnnotationPresent(Named.class); String previousSpecializedBeanName = null;
if (isSpecializing()) { boolean isNameDefined = getAnnotated().isAnnotationPresent(Named.class); String previousSpecializedBeanName = null;
if (isSpecializing()) { boolean isNameDefined = getAnnotated().isAnnotationPresent(Named.class); String previousSpecializedBeanName = null;
if (isSpecializing()) { boolean isNameDefined = getAnnotated().isAnnotationPresent(Named.class); String previousSpecializedBeanName = null;
if (isSpecializing()) { boolean isNameDefined = getAnnotated().isAnnotationPresent(Named.class); String previousSpecializedBeanName = null;