org.jboss.webbeans.bean
Class NewEnterpriseBean<T>

java.lang.Object
  extended by javax.inject.manager.Bean<T>
      extended by org.jboss.webbeans.bean.RIBean<T>
          extended by org.jboss.webbeans.bean.AbstractBean<T,java.lang.Class<T>>
              extended by org.jboss.webbeans.bean.AbstractClassBean<T>
                  extended by org.jboss.webbeans.bean.EnterpriseBean<T>
                      extended by org.jboss.webbeans.bean.NewEnterpriseBean<T>
All Implemented Interfaces:
Contextual<T>

public class NewEnterpriseBean<T>
extends EnterpriseBean<T>

Represents a @New enterprise bean

Author:
Nicklas Karlsson

Field Summary
 
Fields inherited from class org.jboss.webbeans.bean.AbstractClassBean
annotatedItem
 
Fields inherited from class org.jboss.webbeans.bean.AbstractBean
_serializable, dependentInstancesStore, deploymentType, injectionPoints, manager, name, scopeType, type, types
 
Constructor Summary
protected NewEnterpriseBean(AnnotatedClass<T> type, ManagerImpl manager)
          Protected constructor
 
Method Summary
 java.util.Set<java.lang.annotation.Annotation> getBindings()
          Gets the bindings
 java.lang.Class<? extends java.lang.annotation.Annotation> getDeploymentType()
          Gets the deployment type
 java.lang.String getName()
          Gets the name of the bean
 java.lang.Class<? extends java.lang.annotation.Annotation> getScopeType()
          Gets the scope type
 boolean isSpecializing()
           
static
<T> NewEnterpriseBean<T>
of(AnnotatedClass<T> clazz, ManagerImpl manager)
          Creates an instance of a NewEnterpriseBean from an annotated class
static
<T> NewEnterpriseBean<T>
of(java.lang.Class<T> clazz, ManagerImpl manager)
          Creates an instance of a NewEnterpriseBean from a class
 
Methods inherited from class org.jboss.webbeans.bean.EnterpriseBean
canCallRemoveMethods, checkConflictingRoles, checkEnterpriseScopeAllowed, checkObserverMethods, create, destroy, getEjbDescriptor, getSpecializedBean, init, initProxyClass, initSpecialization, initTypes, injectEjbAndCommonFields, isSerializable, postConstruct, preCheckSpecialization, preDestroy, toString
 
Methods inherited from class org.jboss.webbeans.bean.AbstractClassBean
callInitializers, checkBeanImplementation, checkScopeAllowed, equals, getAnnotatedItem, getDefaultDeploymentType, getDefaultName, getInitializerMethods, initDeploymentType, initInitializerMethods, initInjectionPoints, initScopeType, initType, injectBoundFields
 
Methods inherited from class org.jboss.webbeans.bean.AbstractBean
bindDecorators, bindInterceptors, checkDeploymentType, checkInjectionPointsAreSerializable, checkRequiredTypesImplemented, getDependentInstancesStore, getDeploymentType, getInjectionPoints, getMergedStereotypes, getType, getTypes, hashCode, initBindingTypes, initDefaultBindings, initDeploymentTypeFromStereotype, initName, initPrimitive, initProxyable, initScopeTypeFromStereotype, initSerializable, isAssignableFrom, isDependent, isNullable, isPrimitive, isProxyable, postSpecialization
 
Methods inherited from class org.jboss.webbeans.bean.RIBean
getManager
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewEnterpriseBean

protected NewEnterpriseBean(AnnotatedClass<T> type,
                            ManagerImpl manager)
Protected constructor

Parameters:
type - An annotated class
manager - The Web Beans manager
Method Detail

of

public static <T> NewEnterpriseBean<T> of(AnnotatedClass<T> clazz,
                                          ManagerImpl manager)
Creates an instance of a NewEnterpriseBean from an annotated class

Parameters:
clazz - The annotated class
manager - The Web Beans manager
Returns:
a new NewEnterpriseBean instance

of

public static <T> NewEnterpriseBean<T> of(java.lang.Class<T> clazz,
                                          ManagerImpl manager)
Creates an instance of a NewEnterpriseBean from a class

Parameters:
clazz - The class
manager - The Web Beans manager
Returns:
a new NewEnterpriseBean instance

getScopeType

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

Overrides:
getScopeType in class AbstractBean<T,java.lang.Class<T>>
Returns:
@Dependent
See Also:
Bean.getScopeType()

getDeploymentType

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

Overrides:
getDeploymentType in class AbstractBean<T,java.lang.Class<T>>
Returns:
The standard deployment type
See Also:
Bean.getDeploymentType()

getName

public java.lang.String getName()
Gets the name of the bean

Overrides:
getName in class AbstractBean<T,java.lang.Class<T>>
Returns:
null
See Also:
Bean.getName()

getBindings

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

Overrides:
getBindings in class AbstractBean<T,java.lang.Class<T>>
Returns:
The set of binding types
See Also:
Bean.getBindings()

isSpecializing

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


Copyright © 2008-2009. All Rights Reserved.