org.jboss.solder.unwraps
Class UnwrapsProducerBean<M>
java.lang.Object
org.jboss.solder.unwraps.UnwrapsProducerBean<M>
- All Implemented Interfaces:
- javax.enterprise.context.spi.Contextual<M>, javax.enterprise.inject.spi.Bean<M>
public class UnwrapsProducerBean<M>
- extends Object
- implements javax.enterprise.inject.spi.Bean<M>
Bean implementation that produces a JDK proxy
when a method is invoked on the proxy it calls the Unwraps producer method
and invokes the method on the returned object
- Author:
- Stuart Douglas
|
Constructor Summary |
UnwrapsProducerBean(javax.enterprise.inject.spi.AnnotatedMethod<?> method,
javax.enterprise.inject.spi.BeanManager manager)
|
UnwrapsProducerBean(javax.enterprise.inject.spi.AnnotatedMethod<?> method,
Set<Annotation> methodQualifiers,
Set<Annotation> beanQualifiers,
javax.enterprise.inject.spi.BeanManager manager)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnwrapsProducerBean
public UnwrapsProducerBean(javax.enterprise.inject.spi.AnnotatedMethod<?> method,
javax.enterprise.inject.spi.BeanManager manager)
UnwrapsProducerBean
public UnwrapsProducerBean(javax.enterprise.inject.spi.AnnotatedMethod<?> method,
Set<Annotation> methodQualifiers,
Set<Annotation> beanQualifiers,
javax.enterprise.inject.spi.BeanManager manager)
getBeanClass
public Class<?> getBeanClass()
- Specified by:
getBeanClass in interface javax.enterprise.inject.spi.Bean<M>
getInjectionPoints
public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
- Specified by:
getInjectionPoints in interface javax.enterprise.inject.spi.Bean<M>
getName
public String getName()
- Specified by:
getName in interface javax.enterprise.inject.spi.Bean<M>
getQualifiers
public Set<Annotation> getQualifiers()
- Specified by:
getQualifiers in interface javax.enterprise.inject.spi.Bean<M>
getScope
public Class<? extends Annotation> getScope()
- the proxies that are injected all have Dependant scope
- Specified by:
getScope in interface javax.enterprise.inject.spi.Bean<M>
getStereotypes
public Set<Class<? extends Annotation>> getStereotypes()
- Specified by:
getStereotypes in interface javax.enterprise.inject.spi.Bean<M>
getTypes
public Set<Type> getTypes()
- Specified by:
getTypes in interface javax.enterprise.inject.spi.Bean<M>
isAlternative
public boolean isAlternative()
- Specified by:
isAlternative in interface javax.enterprise.inject.spi.Bean<M>
isNullable
public boolean isNullable()
- Specified by:
isNullable in interface javax.enterprise.inject.spi.Bean<M>
create
public M create(javax.enterprise.context.spi.CreationalContext<M> creationalContext)
- Specified by:
create in interface javax.enterprise.context.spi.Contextual<M>
destroy
public void destroy(M instance,
javax.enterprise.context.spi.CreationalContext<M> creationalContext)
- Specified by:
destroy in interface javax.enterprise.context.spi.Contextual<M>
Copyright © 2008-2011 Seam Framework. All Rights Reserved.