org.jboss.webbeans.bean.standard
Class AbstractFacadeBean<T>
java.lang.Object
javax.inject.manager.Bean<T>
org.jboss.webbeans.bean.RIBean<T>
org.jboss.webbeans.bean.standard.AbstractStandardBean<T>
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>
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 javax.inject.manager.Bean |
getTypes |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
AbstractFacadeBean
protected AbstractFacadeBean(ManagerImpl manager)
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 bindingsnewBindings
- 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.