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 E
create(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.boolean
isPassivationCapableBean()
boolean
isProxyable()
String
toString()
-
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 jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getStereotypes, isAlternative
-
Methods inherited from interface jakarta.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:BeanAttributes
Obtains the bean types of the bean.- Specified by:
getTypes
in interfaceBeanAttributes<E extends Extension>
- Overrides:
getTypes
in classForwardingBeanAttributes<E extends Extension>
- Returns:
- the bean types
-
isProxyable
public boolean isProxyable()
- Overrides:
isProxyable
in classAbstractBuiltInBean<E extends Extension>
-
isPassivationCapableBean
public boolean isPassivationCapableBean()
- Overrides:
isPassivationCapableBean
in classAbstractBuiltInBean<E extends Extension>
-
create
public E create(CreationalContext<E> creationalContext)
Description copied from interface:Contextual
Create a new instance of the contextual type. Instances should use the givenCreationalContext
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 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:BeanAttributes
Obtains the scope of the bean.- Specified by:
getScope
in interfaceBeanAttributes<E extends Extension>
- Overrides:
getScope
in classForwardingBeanAttributes<E extends Extension>
- Returns:
- the scope
-
getAnnotatedType
public SlimAnnotatedType<E> getAnnotatedType()
-
toString
public String toString()
- Overrides:
toString
in classCommonBean<E extends Extension>
-
-