org.jboss.weld.bean
Class NewManagedBean<T>

java.lang.Object
  extended by org.jboss.weld.bean.RIBean<T>
      extended by org.jboss.weld.bean.AbstractBean<T,java.lang.Class<T>>
          extended by org.jboss.weld.bean.AbstractClassBean<T>
              extended by org.jboss.weld.bean.ManagedBean<T>
                  extended by 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

Field Summary
 
Fields inherited from class org.jboss.weld.bean.AbstractClassBean
annotatedItem
 
Fields inherited from class org.jboss.weld.bean.AbstractBean
manager, name, scopeType, type, types
 
Fields inherited from class org.jboss.weld.bean.RIBean
BEAN_ID_PREFIX, BEAN_ID_SEPARATOR
 
Constructor Summary
protected NewManagedBean(WeldClass<T> type, java.lang.String idSuffix, BeanManagerImpl manager)
          Protected constructor
 
Method Summary
 java.lang.String getName()
          Gets the name of the bean
 java.util.Set<java.lang.annotation.Annotation> getQualifiers()
          Gets the bindings
 java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
          Gets the scope type
 boolean isAlternative()
           
 boolean isSpecializing()
           
static
<T> NewManagedBean<T>
of(WeldClass<T> clazz, BeanManagerImpl manager)
          Creates an instance of a NewSimpleBean from an annotated class
 
Methods inherited from class org.jboss.weld.bean.ManagedBean
applyInterceptors, attachCorrectInjectionPoint, checkBeanImplementation, checkConstructor, checkType, create, destroy, getConstructor, getDescription, getDescription, getSpecializedBean, initConstructor, initDeclaredInterceptors, initialize, isInterceptionCandidate, preSpecialize, specialize
 
Methods inherited from class org.jboss.weld.bean.AbstractClassBean
applyDecorators, defaultPostConstruct, defaultPreDestroy, flattenInterceptorBindings, getAnnotatedItem, getDecorators, getDefaultName, getInitializerMethods, getInjectableFields, getInjectionPoints, getInjectionTarget, getPostConstruct, getPreDestroy, getSuperclasses, hasDecorators, initDecorators, initInitializerMethods, initInjectableFields, initInterceptors, initPostConstruct, initPreDestroy, initProxyClassForDecoratedBean, initScopeType, initType, setInjectionTarget
 
Methods inherited from class org.jboss.weld.bean.AbstractBean
addInjectionPoint, addInjectionPoints, checkDelegateInjectionPoints, getAnnotatedInjectionPoints, getDelegateInjectionPoints, getMergedStereotypes, getStereotypes, getType, getTypes, initBindings, initDefaultBindings, initName, initPolicy, initPrimitive, initProxyable, initScopeTypeFromStereotype, initSerializable, initStereotypes, initTypes, isDependent, isInitialized, isNormalScoped, isNullable, isPrimitive, isProxyable, isSerializable, postSpecialize
 
Methods inherited from class org.jboss.weld.bean.RIBean
equals, getBeanClass, getId, getManager, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewManagedBean

protected NewManagedBean(WeldClass<T> type,
                         java.lang.String idSuffix,
                         BeanManagerImpl manager)
Protected constructor

Parameters:
type - An annotated class
manager - The Bean manager
Method Detail

of

public static <T> NewManagedBean<T> of(WeldClass<T> clazz,
                                       BeanManagerImpl manager)
Creates an instance of a NewSimpleBean from an annotated class

Parameters:
clazz - The annotated class
manager - The Bean manager
Returns:
a new NewSimpleBean instance

getScope

public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Gets the scope type

Specified by:
getScope in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
getScope in class AbstractBean<T,java.lang.Class<T>>
Returns:
@Dependent
See Also:
org.jboss.weld.bean.BaseBean#getScope()

isAlternative

public boolean isAlternative()
Specified by:
isAlternative in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
isAlternative in class AbstractBean<T,java.lang.Class<T>>

getName

public java.lang.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,java.lang.Class<T>>
Returns:
null
See Also:
org.jboss.weld.bean.BaseBean#getName()

getQualifiers

public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Gets the bindings

Specified by:
getQualifiers in interface javax.enterprise.inject.spi.Bean<T>
Overrides:
getQualifiers in class AbstractBean<T,java.lang.Class<T>>
Returns:
The set of binding types
See Also:
org.jboss.weld.bean.BaseBean#getQualifiers()

isSpecializing

public boolean isSpecializing()
Overrides:
isSpecializing in class AbstractBean<T,java.lang.Class<T>>


Copyright © 2008-2009 Seam Framework. All Rights Reserved.