org.jboss.webbeans.bean
Class InstanceBean<T,S>

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<Instance<T>,S,T>
              extended by org.jboss.webbeans.bean.InstanceBean<T,S>
Type Parameters:
T -
S -
All Implemented Interfaces:
Contextual<Instance<T>>

public class InstanceBean<T,S>
extends AbstractFacadeBean<Instance<T>,S,T>

Helper bean for accessing instances

Author:
Gavin King

Field Summary
 
Fields inherited from class org.jboss.webbeans.bean.AbstractFacadeBean
annotatedItem
 
Fields inherited from class org.jboss.webbeans.bean.AbstractBean
apiTypes, deploymentType, injectionPoints, manager, name, scopeType, type
 
Constructor Summary
InstanceBean(AnnotatedItem<Instance<T>,S> field, ManagerImpl manager)
          Constructor
 
Method Summary
 Instance<T> create()
          Creates the implementing bean
 void destroy(Instance<T> instance)
           
 
Methods inherited from class org.jboss.webbeans.bean.AbstractFacadeBean
getAnnotatedItem, getBindingTypesArray, getDefaultDeploymentType, getDefaultName, getTypeParameter, initDeploymentType, initScopeType, initType, toString
 
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
getManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceBean

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

Parameters:
field - The underlying fields
manager - The Web Beans manager
Method Detail

create

public Instance<T> create()
Creates the implementing bean

Specified by:
create in interface Contextual<Instance<T>>
Specified by:
create in class Bean<Instance<T>>
Returns:
The implementation

destroy

public void destroy(Instance<T> instance)
Specified by:
destroy in interface Contextual<Instance<T>>
Specified by:
destroy in class Bean<Instance<T>>


Copyright © 2008. All Rights Reserved.