Package org.jboss.weld.bean.builtin
Class ExtensionBean<E extends Extension>
- java.lang.Object
-
- org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
-
- org.jboss.weld.bean.CommonBean<T>
-
- org.jboss.weld.bean.RIBean<T>
-
- org.jboss.weld.bean.builtin.AbstractBuiltInBean<E>
-
- org.jboss.weld.bean.builtin.ExtensionBean<E>
-
- All Implemented Interfaces:
Contextual<E>,Bean<E>,BeanAttributes<E>,PassivationCapable,WeldBean<E>
public class ExtensionBean<E extends Extension> extends AbstractBuiltInBean<E>
- Author:
- pmuir
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.weld.bean.builtin.AbstractBuiltInBean
AbstractBuiltInBean.BuiltInBeanAttributes<T>
-
-
Field Summary
-
Fields inherited from class org.jboss.weld.bean.RIBean
beanManager
-
-
Constructor Summary
Constructors Constructor Description ExtensionBean(BeanManagerImpl manager, EnhancedAnnotatedType<E> enhancedAnnotatedType, org.jboss.weld.bootstrap.spi.Metadata<E> instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Ecreate(CreationalContext<E> creationalContext)Create a new instance of the contextual type.SlimAnnotatedType<E>getAnnotatedType()Class<? extends Annotation>getScope()Obtains the scope of the bean.Set<Type>getTypes()Obtains the bean types of the bean.booleanisPassivationCapableBean()booleanisProxyable()StringtoString()-
Methods inherited from class org.jboss.weld.bean.builtin.AbstractBuiltInBean
cleanupAfterBoot, getInjectionPoints, getType, initializeAfterBeanDiscovery, internalInitialize, isDependentContextOptimizationAllowed, isPassivationCapableDependency, isProxyRequired, preInitialize
-
Methods inherited from class org.jboss.weld.bean.RIBean
destroy, getBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isDependent, isNormalScoped, setAttributes
-
Methods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, isNullable, unwrap
-
Methods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getStereotypes, isAlternative
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getStereotypes, isAlternative
-
Methods inherited from interface javax.enterprise.inject.spi.PassivationCapable
getId
-
Methods inherited from interface org.jboss.weld.bean.WeldBean
getPriority
-
-
-
-
Constructor Detail
-
ExtensionBean
public ExtensionBean(BeanManagerImpl manager, EnhancedAnnotatedType<E> enhancedAnnotatedType, org.jboss.weld.bootstrap.spi.Metadata<E> instance)
-
-
Method Detail
-
getTypes
public Set<Type> getTypes()
Description copied from interface:BeanAttributesObtains the bean types of the bean.- Specified by:
getTypesin interfaceBeanAttributes<E extends Extension>- Overrides:
getTypesin classForwardingBeanAttributes<E extends Extension>- Returns:
- the bean types
-
isProxyable
public boolean isProxyable()
- Overrides:
isProxyablein classAbstractBuiltInBean<E extends Extension>
-
isPassivationCapableBean
public boolean isPassivationCapableBean()
- Overrides:
isPassivationCapableBeanin classAbstractBuiltInBean<E extends Extension>
-
create
public E create(CreationalContext<E> creationalContext)
Description copied from interface:ContextualCreate a new instance of the contextual type. Instances should use the givenCreationalContextwhen 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 callCreationalContext.push(Object)between instantiation and injection to help the container minimize the use of client proxy objects.- Parameters:
creationalContext- the context in which this instance is being created- Returns:
- the contextual instance
-
getScope
public Class<? extends Annotation> getScope()
Description copied from interface:BeanAttributesObtains the scope of the bean.- Specified by:
getScopein interfaceBeanAttributes<E extends Extension>- Overrides:
getScopein classForwardingBeanAttributes<E extends Extension>- Returns:
- the scope
-
getAnnotatedType
public SlimAnnotatedType<E> getAnnotatedType()
-
toString
public String toString()
- Overrides:
toStringin classCommonBean<E extends Extension>
-
-