org.jboss.webbeans.bean.standard
Class AbstractFacadeBean<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.standard.AbstractStandardBean<T>
              extended by org.jboss.webbeans.bean.standard.AbstractFacadeBean<T>
All Implemented Interfaces:
Contextual<T>
Direct Known Subclasses:
EventBean, InstanceBean

public abstract class AbstractFacadeBean<T>
extends AbstractStandardBean<T>


Constructor Summary
protected AbstractFacadeBean(ManagerImpl manager)
           
 
Method Summary
 T create(CreationalContext<T> creationalContext)
          Create a new instance of the contextual type
 void destroy(T instance)
          Destroys an instance of the contexual type
protected  java.util.Set<java.lang.annotation.Annotation> fixBindings(java.util.Set<? extends java.lang.annotation.Annotation> bindings)
          Merges and validates the current and new bindings Checks with an abstract method for annotations to exclude
protected abstract  java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getFilteredAnnotationTypes()
          Gets a set of annotation classes to ignore
protected abstract  T newInstance(java.lang.reflect.Type type, java.util.Set<java.lang.annotation.Annotation> annotations)
           
 
Methods inherited from class org.jboss.webbeans.bean.standard.AbstractStandardBean
getBindings, getDeploymentType, getId, getInjectionPoints, getName, getScopeType, getSpecializedBean, initialize, isNullable, isPrimitive, isProxyable, isSerializable, isSpecializing
 
Methods inherited from class org.jboss.webbeans.bean.RIBean
createId, equals, getManager, getType, hashCode, isDependent
 
Methods inherited from class javax.inject.manager.Bean
getTypes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFacadeBean

protected AbstractFacadeBean(ManagerImpl manager)
Method Detail

create

public T create(CreationalContext<T> creationalContext)
Description copied from interface: Contextual
Create a new instance of the contextual type

Parameters:
creationalContext - the creational context in which incompletely initialized contexts may be placed
Returns:
the contextual instance

fixBindings

protected java.util.Set<java.lang.annotation.Annotation> fixBindings(java.util.Set<? extends java.lang.annotation.Annotation> bindings)
Merges and validates the current and new bindings Checks with an abstract method for annotations to exclude

Parameters:
currentBindings - Existing bindings
newBindings - New bindings
Returns:
The union of the bindings

destroy

public void destroy(T instance)
Description copied from interface: Contextual
Destroys an instance of the contexual type

Parameters:
instance - the insance to destroy

getFilteredAnnotationTypes

protected abstract java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getFilteredAnnotationTypes()
Gets a set of annotation classes to ignore

Returns:
A set of annotation classes to ignore

newInstance

protected abstract T newInstance(java.lang.reflect.Type type,
                                 java.util.Set<java.lang.annotation.Annotation> annotations)


Copyright © 2011. All Rights Reserved.