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

java.lang.Object
  extended by javax.webbeans.manager.Bean<T>
      extended by org.jboss.webbeans.bean.AbstractBean<T,S>
          extended by org.jboss.webbeans.bean.AbstractFacadeBean<T,S,P>
Type Parameters:
T -
S -
P -
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
apiTypes, deploymentType, injectionPoints, manager, name, scopeType, type
 
Constructor Summary
AbstractFacadeBean(AnnotatedItem<T,S> field, ManagerImpl manager)
          Constructor
 
Method Summary
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
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
 java.lang.String toString()
          Returns a string representation
 
Methods inherited from class org.jboss.webbeans.bean.AbstractBean
bindDecorators, bindInterceptors, checkDeploymentType, getBindingTypes, getDeclaredBeanType, getDeploymentType, getDeploymentType, getInjectionPoints, getMergedStereotypes, getName, getScopeType, getSpecializedType, getType, getTypes, init, initApiTypes, initBindingTypes, initInjectionPoints, initName, initPrimitive, isAssignableFrom, isNullable, isPrimitive, isSerializable, toDetailedString
 
Methods inherited from class javax.webbeans.manager.Bean
create, destroy, getManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

Overrides:
initScopeType in class AbstractBean<T,S>

initDeploymentType

protected void initDeploymentType()
Initializes the deployment type to Standard

Overrides:
initDeploymentType 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


Copyright © 2008. All Rights Reserved.