T - public abstract class ForwardingBean<T> extends Object implements Bean<T>
| Constructor and Description |
|---|
ForwardingBean() |
| Modifier and Type | Method and Description |
|---|---|
T |
create(CreationalContext<T> creationalContext)
Creates an instance of the delegate
|
protected abstract Bean<T> |
delegate()
Abstract getter for the delegate
|
void |
destroy(T instance,
CreationalContext<T> creationalContext)
Destroys an instance through the delegate
|
boolean |
equals(Object obj)
Compares an object with the delegate
|
Class<?> |
getBeanClass()
The bean class of the managed bean or session bean or
of the bean that declares the producer method or field.
|
Set<InjectionPoint> |
getInjectionPoints()
Obtains the
InjectionPoint objects
representing injection points of the bean, that will be validated by the
container at initialization time. |
String |
getName()
Gets the name of the delegate
|
Set<Annotation> |
getQualifiers()
Gets the binding types of the delegate
|
Class<? extends Annotation> |
getScope()
Gets the scope type of the delegate
|
Set<Class<? extends Annotation>> |
getStereotypes()
The stereotypes applied to this bean
|
Set<Type> |
getTypes()
Gets the API types of the delegate
|
int |
hashCode()
Gets the hash code of the delegate
|
boolean |
isAlternative()
Determines if the bean is an
alternative.
|
boolean |
isNullable()
Indicates if the delegate is nullable
|
String |
toString()
Returns a string representation
|
public T create(CreationalContext<T> creationalContext)
create in interface Contextual<T>creationalContext - the context in which this instance is being createdprotected abstract Bean<T> delegate()
public void destroy(T instance, CreationalContext<T> creationalContext)
destroy in interface Contextual<T>instance - The instance to destroycreationalContext - the context in which this instance was createdpublic boolean equals(Object obj)
public Class<?> getBeanClass()
BeangetBeanClass in interface Bean<T>public Set<Annotation> getQualifiers()
getQualifiers in interface Bean<T>public Set<InjectionPoint> getInjectionPoints()
BeanInjectionPoint objects
representing injection points of the bean, that will be validated by the
container at initialization time.getInjectionPoints in interface Bean<T>public String getName()
public Set<Class<? extends Annotation>> getStereotypes()
getStereotypes in interface Bean<T>public Class<? extends Annotation> getScope()
public int hashCode()
public boolean isNullable()
isNullable in interface Bean<T>public boolean isAlternative()
BeanisAlternative in interface Bean<T>Copyright © 2013 Seam Framework. All Rights Reserved.