/** * 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(); } } }
protected <T, S> boolean fireProcessBeanAttributes(AbstractBean<T, S> bean) { if (!specializationAndEnablementRegistry.isCandidateForLifecycleEvent(bean)) { return false; } ProcessBeanAttributesImpl<T> event = containerLifecycleEvents.fireProcessBeanAttributes(getManager(), bean, bean.getAnnotated(), bean.getType()); if (event == null) { return false; } if (event.isVeto()) { return true; } if (event.isDirty()) { bean.setAttributes(ExternalBeanAttributesFactory.<T>of(event.getBeanAttributesInternal(), manager)); bean.checkSpecialization(); } return false; } }
protected <T, S> boolean fireProcessBeanAttributes(AbstractBean<T, S> bean) { if (!specializationAndEnablementRegistry.isCandidateForLifecycleEvent(bean)) { return false; } ProcessBeanAttributesImpl<T> event = containerLifecycleEvents.fireProcessBeanAttributes(getManager(), bean, bean.getAnnotated(), bean.getType()); if (event == null) { return false; } if (event.isVeto()) { return true; } if (event.isDirty()) { bean.setAttributes(ExternalBeanAttributesFactory.<T>of(event.getBeanAttributesInternal(), manager)); bean.checkSpecialization(); } if (event.isIgnoreFinalMethods()) { bean.setIgnoreFinalMethods(); } return false; } }
protected <T, S> boolean fireProcessBeanAttributes(AbstractBean<T, S> bean) { if (!specializationAndEnablementRegistry.isCandidateForLifecycleEvent(bean)) { return false; } ProcessBeanAttributesImpl<T> event = containerLifecycleEvents.fireProcessBeanAttributes(getManager(), bean, bean.getAnnotated(), bean.getType()); if (event == null) { return false; } if (event.isVeto()) { return true; } if (event.isDirty()) { bean.setAttributes(ExternalBeanAttributesFactory.<T>of(event.getBeanAttributesInternal(), manager)); bean.checkSpecialization(); } if (event.isIgnoreFinalMethods()) { bean.setIgnoreFinalMethods(); } return false; } }
protected <T, S> boolean fireProcessBeanAttributes(AbstractBean<T, S> bean) { if (!specializationAndEnablementRegistry.isCandidateForLifecycleEvent(bean)) { return false; } ProcessBeanAttributesImpl<T> event = containerLifecycleEvents.fireProcessBeanAttributes(getManager(), bean, bean.getAnnotated(), bean.getType()); if (event == null) { return false; } if (event.isVeto()) { return true; } if (event.isDirty()) { bean.setAttributes(ExternalBeanAttributesFactory.<T>of(event.getBeanAttributesInternal(), manager)); bean.checkSpecialization(); } if (event.isIgnoreFinalMethods()) { bean.setIgnoreFinalMethods(); } return false; } }
protected <T, S> boolean fireProcessBeanAttributes(AbstractBean<T, S> bean) { if (!specializationAndEnablementRegistry.isCandidateForLifecycleEvent(bean)) { return false; } ProcessBeanAttributesImpl<T> event = containerLifecycleEvents.fireProcessBeanAttributes(getManager(), bean, bean.getAnnotated(), bean.getType()); if (event == null) { return false; } if (event.isVeto()) { return true; } if (event.isDirty()) { bean.setAttributes(ExternalBeanAttributesFactory.<T>of(event.getBeanAttributesInternal(), manager)); bean.checkSpecialization(); } if (event.isIgnoreFinalMethods()) { bean.setIgnoreFinalMethods(); } return false; } }
protected <T, S> boolean fireProcessBeanAttributes(AbstractBean<T, S> bean) { if (!specializationAndEnablementRegistry.isCandidateForLifecycleEvent(bean)) { return false; } ProcessBeanAttributesImpl<T> event = containerLifecycleEvents.fireProcessBeanAttributes(getManager(), bean, bean.getAnnotated(), bean.getType()); if (event == null) { return false; } if (event.isVeto()) { return true; } if (event.isDirty()) { bean.setAttributes(ExternalBeanAttributesFactory.<T>of(event.getBeanAttributesInternal(), manager)); bean.checkSpecialization(); } if (event.isIgnoreFinalMethods()) { bean.setIgnoreFinalMethods(); } return false; } }