@Module public class NewBean<X> extends AbstractIntrospectedBean<X>
CURRENT_ANN| Modifier and Type | Method and Description |
|---|---|
X |
create(CreationalContext<X> env)
Creates a new instance of the component.
|
void |
destroy(X instance,
CreationalContext<X> env)
Call destroy
|
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the injection points.
|
java.lang.String |
getName()
The @New name is null.
|
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
The qualifiers are @New
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
The scope for @New is dependent.
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns thetype closure.
|
void |
introspect() |
bind, dispose, getAnnotated, getBaseType, getBeanClass, getDefaultName, getId, getJavaClass, getNamedValue, getStereotypes, getTargetClass, getTargetName, getTargetSimpleName, getTargetType, introspect, introspectDefault, introspectName, introspectQualifiers, introspectScope, introspectSpecializes, introspectStereotypes, isAlternative, isNormalScope, isNullable, isPassivating, isPassivationCapable, setPassivating, setPassivationId, toDebugStringcalculatePassivationId, createObject, getAnnotatedType, getBeanManager, getInjectionTarget, toDisplayString, toDisplayStringImpl, toStringpublic void introspect()
introspect in class AbstractIntrospectedBean<X>public java.lang.String getName()
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
public java.util.Set<java.lang.reflect.Type> getTypes()
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
getQualifiers in interface Bean<X>getQualifiers in class AbstractIntrospectedBean<X>public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints in interface Bean<X>getInjectionPoints in class AbstractIntrospectedBean<X>public X create(CreationalContext<X> env)
create in interface Contextual<X>create in class AbstractIntrospectedBean<X>env - the creation context used to support circular
references.public void destroy(X instance, CreationalContext<X> env)
AbstractIntrospectedBeandestroy in interface Contextual<X>destroy in class AbstractIntrospectedBean<X>instance - the instance to destroy