org.jboss.weld.bean
Class NewManagedBean<T>
java.lang.Object
org.jboss.weld.bean.RIBean<T>
org.jboss.weld.bean.AbstractBean<T,Class<T>>
org.jboss.weld.bean.AbstractClassBean<T>
org.jboss.weld.bean.ManagedBean<T>
org.jboss.weld.bean.NewManagedBean<T>
- All Implemented Interfaces:
- javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, javax.enterprise.inject.spi.PassivationCapable, NewBean
public class NewManagedBean<T>
- extends ManagedBean<T>
- implements NewBean
Represents a @New simple bean
- Author:
- Nicklas Karlsson
Methods inherited from class org.jboss.weld.bean.ManagedBean |
applyInterceptors, checkBeanImplementation, checkType, create, createId, createInstance, createSimpleId, destroy, getSpecializedBean, hasDefaultProducer, initialize, initializeAfterBeanDiscovery, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, preSpecialize, specialize |
Methods inherited from class org.jboss.weld.bean.AbstractClassBean |
applyDecorators, checkConstructor, createEnhancedSubclass, defaultPostConstruct, defaultPreDestroy, getConstructor, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getWeldAnnotated, hasDecorators, hasInterceptors, initConstructor, initDecorators, initEnhancedSubclass, initInitializerMethods, initInjectableFields, initInterceptorsIfNeeded, initPostConstruct, initPreDestroy, initScope, initType, isSubclassed, setInjectionTarget |
Methods inherited from class org.jboss.weld.bean.AbstractBean |
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, cleanupAfterBoot, getDelegateInjectionPoints, getMergedStereotypes, getNewInjectionPoints, getServices, getStereotypes, getType, getTypedTypes, getTypes, getWeldInjectionPoints, initAlternative, initDefaultQualifiers, initName, initQualifiers, initScopeFromStereotype, initStereotypes, initTypes, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyRequired, postSpecialize |
NewManagedBean
protected NewManagedBean(WeldClass<T> type,
String idSuffix,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
- Protected constructor
- Parameters:
type
- An annotated classbeanManager
- The Bean manager
of
public static <T> NewManagedBean<T> of(WeldClass<T> clazz,
BeanManagerImpl beanManager,
org.jboss.weld.bootstrap.api.ServiceRegistry services)
- Creates an instance of a NewSimpleBean from an annotated class
- Parameters:
clazz
- The annotated classbeanManager
- The Bean manager
- Returns:
- a new NewSimpleBean instance
getScope
public Class<? extends Annotation> getScope()
- Gets the scope type
- Specified by:
getScope
in interface javax.enterprise.inject.spi.Bean<T>
- Overrides:
getScope
in class AbstractBean<T,Class<T>>
- Returns:
- @Dependent
- See Also:
Bean.getScope()
isAlternative
public boolean isAlternative()
- Specified by:
isAlternative
in interface javax.enterprise.inject.spi.Bean<T>
- Overrides:
isAlternative
in class AbstractBean<T,Class<T>>
getName
public String getName()
- Gets the name of the bean
- Specified by:
getName
in interface javax.enterprise.inject.spi.Bean<T>
- Overrides:
getName
in class AbstractBean<T,Class<T>>
- Returns:
- null
- See Also:
Bean.getName()
getQualifiers
public Set<Annotation> getQualifiers()
- Gets the bindings
- Specified by:
getQualifiers
in interface javax.enterprise.inject.spi.Bean<T>
- Overrides:
getQualifiers
in class AbstractBean<T,Class<T>>
- Returns:
- The set of binding types
- See Also:
Bean.getQualifiers()
isSpecializing
public boolean isSpecializing()
- Overrides:
isSpecializing
in class AbstractBean<T,Class<T>>
toString
public String toString()
- Overrides:
toString
in class ManagedBean<T>
Copyright © 2013 Seam Framework. All Rights Reserved.