org.jboss.webbeans.bean
Class AbstractFacadeBean<T,S,P>

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,S>
              extended by org.jboss.webbeans.bean.AbstractFacadeBean<T,S,P>
Type Parameters:
T - the bean type
S - the injection point type
P - the parameterized type
All Implemented Interfaces:
Contextual<T>
Direct Known Subclasses:
EventBean, InstanceBean

public abstract class AbstractFacadeBean<T,S,P>
extends AbstractBean<T,S>

Facade bean for implicit beans

Author:
Gavin King

Field Summary
protected  AnnotatedItem<T,S> annotatedItem
           
 
Fields inherited from class org.jboss.webbeans.bean.AbstractBean
_serializable, dependentInstancesStore, deploymentType, injectionPoints, manager, name, scopeType, type, types
 
Constructor Summary
AbstractFacadeBean(AnnotatedItem<T,S> field, ManagerImpl manager)
          Constructor
 
Method Summary
protected  void checkDeploymentType()
          Validates the deployment type
protected  AnnotatedItem<T,S> getAnnotatedItem()
          Gets the underlying item
protected  java.lang.annotation.Annotation[] getBindingTypesArray()
           
protected  java.lang.Class<? extends java.lang.annotation.Annotation> getDefaultDeploymentType()
          Gets the default deployment type, Production
protected  java.lang.String getDefaultName()
          Gets the default name
 AbstractBean<?,?> getSpecializedBean()
           
protected  java.lang.Class<P> getTypeParameter()
          Gets the type paramater of the facade
protected  void initDeploymentType()
          Initializes the deployment type to Standard
protected  void initScopeType()
          Initializes the scope type to dependent
protected  void initType()
          Initializes the type
 boolean isSpecializing()
           
 java.lang.String toString()
          Returns a string representation
 
Methods inherited from class org.jboss.webbeans.bean.AbstractBean
bindDecorators, bindInterceptors, checkInjectionPointsAreSerializable, checkRequiredTypesImplemented, equals, getBindings, getDependentInstancesStore, getDeploymentType, getDeploymentType, getInjectionPoints, getMergedStereotypes, getName, getScopeType, getType, getTypes, hashCode, init, initBindingTypes, initDefaultBindings, initDeploymentTypeFromStereotype, initName, initPrimitive, initProxyable, initScopeTypeFromStereotype, initSerializable, initSpecialization, initTypes, isAssignableFrom, isDependent, isNullable, isPrimitive, isProxyable, isSerializable, postSpecialization, preCheckSpecialization
 
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
 
Methods inherited from interface javax.context.Contextual
create, destroy
 

Field Detail

annotatedItem

protected AnnotatedItem<T,S> annotatedItem
Constructor Detail

AbstractFacadeBean

public AbstractFacadeBean(AnnotatedItem<T,S> field,
                          ManagerImpl manager)
Constructor

Parameters:
field - The facaded field
manager - The Web Beans manager
Method Detail

getBindingTypesArray

protected java.lang.annotation.Annotation[] getBindingTypesArray()

getTypeParameter

protected java.lang.Class<P> getTypeParameter()
Gets the type paramater of the facade

Returns:
The type parameter

initScopeType

protected void initScopeType()
Initializes the scope type to dependent

Specified by:
initScopeType in class AbstractBean<T,S>

initDeploymentType

protected void initDeploymentType()
Initializes the deployment type to Standard

Specified by:
initDeploymentType in class AbstractBean<T,S>

checkDeploymentType

protected void checkDeploymentType()
Description copied from class: AbstractBean
Validates the deployment type

Overrides:
checkDeploymentType in class AbstractBean<T,S>

getAnnotatedItem

protected AnnotatedItem<T,S> getAnnotatedItem()
Gets the underlying item

Specified by:
getAnnotatedItem in class AbstractBean<T,S>
Returns:
The underlying item

getDefaultName

protected java.lang.String getDefaultName()
Gets the default name

Specified by:
getDefaultName in class AbstractBean<T,S>
Returns:
The default name

initType

protected void initType()
Initializes the type

Specified by:
initType in class AbstractBean<T,S>

getDefaultDeploymentType

protected java.lang.Class<? extends java.lang.annotation.Annotation> getDefaultDeploymentType()
Gets the default deployment type, Production

Specified by:
getDefaultDeploymentType in class AbstractBean<T,S>
Returns:
The default deployment type

toString

public java.lang.String toString()
Returns a string representation

Overrides:
toString in class AbstractBean<T,S>
Returns:
The string representation

getSpecializedBean

public AbstractBean<?,?> getSpecializedBean()
Specified by:
getSpecializedBean in class AbstractBean<T,S>

isSpecializing

public boolean isSpecializing()
Overrides:
isSpecializing in class AbstractBean<T,S>


Copyright © 2008-2009. All Rights Reserved.