public class ExtensionBean extends AbstractBuiltInBean<Extension>
AbstractBuiltInBean.BuiltInBeanAttributes<T>beanManager| Constructor and Description |
|---|
ExtensionBean(BeanManagerImpl manager,
EnhancedAnnotatedType<Extension> clazz,
Metadata<Extension> instance) |
| Modifier and Type | Method and Description |
|---|---|
Extension |
create(CreationalContext<Extension> creationalContext)
Create a new instance of the contextual type.
|
void |
destroy(Extension instance,
CreationalContext<Extension> creationalContext)
Destroy an instance of the contextual type.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Obtains the scope of the bean.
|
java.util.Set<java.lang.reflect.Type> |
getTypes()
Obtains the bean types of the bean.
|
boolean |
isPassivationCapableBean() |
boolean |
isProxyable() |
java.lang.String |
toString() |
cleanupAfterBoot, getInjectionPoints, getType, initializeAfterBeanDiscovery, internalInitialize, isPassivationCapableDependency, isProxyRequired, preInitializegetBeanClass, getBeanManager, getQualifierInstances, initialize, isDependent, isNormalScopedattributes, equals, getId, getIdentifier, hashCode, isNullable, setAttributes, unwrapgetName, getQualifiers, getStereotypes, isAlternativeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIdgetName, getQualifiers, getStereotypes, isAlternativepublic ExtensionBean(BeanManagerImpl manager, EnhancedAnnotatedType<Extension> clazz, Metadata<Extension> instance)
public java.util.Set<java.lang.reflect.Type> getTypes()
BeanAttributesgetTypes in interface BeanAttributes<Extension>getTypes in class ForwardingBeanAttributes<Extension>public boolean isProxyable()
isProxyable in class AbstractBuiltInBean<Extension>public boolean isPassivationCapableBean()
isPassivationCapableBean in class AbstractBuiltInBean<Extension>public Extension create(CreationalContext<Extension> creationalContext)
ContextualCreationalContext when obtaining contextual references to inject, in order to ensure
that any dependent objects are associated with the contextual instance that is being created. An implementation may call
CreationalContext.push(Object) between instantiation and injection to help the
container minimize the use of client proxy objects.creationalContext - the context in which this instance is being createdpublic void destroy(Extension instance, CreationalContext<Extension> creationalContext)
ContextualCreationalContext.release() to allow the container to destroy dependent objects of
the contextual instance.instance - the contextual instance to destroycreationalContext - the context in which this instance was createdpublic java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
BeanAttributesgetScope in interface BeanAttributes<Extension>getScope in class ForwardingBeanAttributes<Extension>public java.lang.String toString()
toString in class CommonBean<Extension>Copyright © 2014. All Rights Reserved.