T
- the class of the beanpublic abstract class ForwardingBean<T> extends Object implements javax.enterprise.inject.spi.Bean<T>
Bean
that forwards all calls to the
delegate()
.Constructor and Description |
---|
ForwardingBean() |
Modifier and Type | Method and Description |
---|---|
T |
create(javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
protected abstract javax.enterprise.inject.spi.Bean<T> |
delegate()
All calls to this
Bean instance are forwarded to the delegate
unless overridden. |
void |
destroy(T instance,
javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
boolean |
equals(Object obj) |
Class<?> |
getBeanClass() |
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
String |
getName() |
Set<Annotation> |
getQualifiers() |
Class<? extends Annotation> |
getScope() |
Set<Class<? extends Annotation>> |
getStereotypes() |
Set<Type> |
getTypes() |
int |
hashCode() |
boolean |
isAlternative() |
boolean |
isNullable() |
String |
toString() |
protected abstract javax.enterprise.inject.spi.Bean<T> delegate()
Bean
instance are forwarded to the delegate
unless overridden.Bean
public Class<?> getBeanClass()
getBeanClass
in interface javax.enterprise.inject.spi.Bean<T>
public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface javax.enterprise.inject.spi.Bean<T>
public String getName()
getName
in interface javax.enterprise.inject.spi.Bean<T>
public Set<Annotation> getQualifiers()
getQualifiers
in interface javax.enterprise.inject.spi.Bean<T>
public Class<? extends Annotation> getScope()
getScope
in interface javax.enterprise.inject.spi.Bean<T>
public Set<Class<? extends Annotation>> getStereotypes()
getStereotypes
in interface javax.enterprise.inject.spi.Bean<T>
public Set<Type> getTypes()
getTypes
in interface javax.enterprise.inject.spi.Bean<T>
public boolean isAlternative()
isAlternative
in interface javax.enterprise.inject.spi.Bean<T>
public boolean isNullable()
isNullable
in interface javax.enterprise.inject.spi.Bean<T>
public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
create
in interface javax.enterprise.context.spi.Contextual<T>
public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
destroy
in interface javax.enterprise.context.spi.Contextual<T>
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.