T
- the type of beanpublic class ProcessBeanAttributesImpl<T> extends AbstractDefinitionContainerEvent implements ProcessBeanAttributes<T>
BeanAttributes
) to be changed before the bean is registered.Modifier and Type | Method and Description |
---|---|
protected static <T> ProcessBeanAttributesImpl<T> |
fire(BeanManagerImpl beanManager,
BeanAttributes<T> attributes,
Annotated annotated,
Type type) |
Annotated |
getAnnotated() |
BeanAttributes<T> |
getBeanAttributes() |
BeanAttributes<T> |
getBeanAttributesInternal() |
boolean |
isDirty() |
boolean |
isVeto() |
void |
setBeanAttributes(BeanAttributes<T> beanAttributes)
Replaces the
BeanAttributes . |
void |
veto()
Forces the container to ignore the bean.
|
addDefinitionError, fire
getActualTypeArguments, getBeanManager, getErrors, getRawType
checkWithinObserverNotification, getReceiver, postNotify, preNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDefinitionError
protected static <T> ProcessBeanAttributesImpl<T> fire(BeanManagerImpl beanManager, BeanAttributes<T> attributes, Annotated annotated, Type type)
public Annotated getAnnotated()
getAnnotated
in interface ProcessBeanAttributes<T>
AnnotatedType
representing the managed bean class or session bean class, the AnnotatedMethod
representing the producer field, or the AnnotatedField
representing the producer fieldpublic BeanAttributes<T> getBeanAttributes()
getBeanAttributes
in interface ProcessBeanAttributes<T>
BeanAttributes
object that will be used by the container to manage instances of the beanpublic BeanAttributes<T> getBeanAttributesInternal()
public void setBeanAttributes(BeanAttributes<T> beanAttributes)
ProcessBeanAttributes
BeanAttributes
.setBeanAttributes
in interface ProcessBeanAttributes<T>
beanAttributes
- the new BeanAttributes
to usepublic void veto()
ProcessBeanAttributes
veto
in interface ProcessBeanAttributes<T>
public boolean isVeto()
public boolean isDirty()
Copyright © 2015. All Rights Reserved.