Package org.jboss.weld.bean
Interface ClassBean<T>
- Type Parameters:
T- the type of the bean instance
- All Superinterfaces:
jakarta.enterprise.inject.spi.Bean<T>,jakarta.enterprise.inject.spi.BeanAttributes<T>,jakarta.enterprise.context.spi.Contextual<T>,WeldBean<T>
- All Known Subinterfaces:
SessionBean<T>
- All Known Implementing Classes:
AbstractClassBean,DecoratorImpl,InterceptorImpl,ManagedBean
Marker for
Bean implementations that are defined by a Java class.- Author:
- Jozef Hartinger
-
Method Summary
Modifier and TypeMethodDescriptionReturns the annotated type that defines this beanReturns theBeanManagerused by this bean.Returns enhanced annotated type metadata.jakarta.enterprise.inject.spi.InjectionTarget<T>Returns injection target used to produce instances of this beanMethods inherited from interface jakarta.enterprise.inject.spi.Bean
getBeanClass, getInjectionPointsMethods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from interface jakarta.enterprise.context.spi.Contextual
create, destroyMethods inherited from interface org.jboss.weld.bean.WeldBean
getIdentifier, getPriority
-
Method Details
-
getAnnotated
SlimAnnotatedType<T> getAnnotated()Returns the annotated type that defines this bean- Returns:
- annotated type
-
getEnhancedAnnotated
EnhancedAnnotatedType<T> getEnhancedAnnotated()Returns enhanced annotated type metadata. ThrowsIllegalStateExceptionif called after bootstrap.- Returns:
- enhanced annotated type metadata
- Throws:
IllegalStateException- if called after bootstrap
-
getBeanManager
BeanManagerImpl getBeanManager()Returns theBeanManagerused by this bean.- Returns:
- bean manager used by this bean
-
getProducer
jakarta.enterprise.inject.spi.InjectionTarget<T> getProducer()Returns injection target used to produce instances of this bean- Returns:
- the injection target
-