|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.inject.SessionBeanImpl<X,T>
@Module public class SessionBeanImpl<X,T>
Internal implementation for a Bean
| Constructor Summary | |
|---|---|
SessionBeanImpl(AbstractSessionContext<X,T> context,
ManagedBeanImpl<X> bean,
java.util.Set<java.lang.reflect.Type> apiList,
AnnotatedType<X> extAnnType)
|
|
| Method Summary | |
|---|---|
T |
create(CreationalContext<T> env)
Creates a new instance for the Contextual's type. |
void |
destroy(T instance,
CreationalContext<T> cxt)
Destroys an instance for the Contextual's type. |
protected ManagedBeanImpl<X> |
getBean()
|
java.lang.Class<?> |
getBeanClass()
Returns the bean class. |
InjectManager |
getCdiManager()
|
java.lang.String |
getId()
|
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the injection points. |
java.lang.String |
getName()
Returns the bean's name or null if the bean does not have a primary name. |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Returns the bean's qualifier annotations. |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the bean's scope type. |
T |
getScopeAdapter(Bean<?> topBean,
CreationalContextImpl<T> context)
|
java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getStereotypes()
Returns the stereotypes that the bean uses for priority |
java.util.Set<java.lang.reflect.Type> |
getTypes()
Returns the types that the bean exports for bindings. |
boolean |
isAlternative()
True for a disabled alternative. |
boolean |
isNullable()
Returns true if the bean can be null |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SessionBeanImpl(AbstractSessionContext<X,T> context,
ManagedBeanImpl<X> bean,
java.util.Set<java.lang.reflect.Type> apiList,
AnnotatedType<X> extAnnType)
| Method Detail |
|---|
public InjectManager getCdiManager()
getCdiManager in interface InjectEnvironmentBeanprotected ManagedBeanImpl<X> getBean()
public java.util.Set<java.lang.reflect.Type> getTypes()
Bean
getTypes in interface Bean<T>
public T getScopeAdapter(Bean<?> topBean,
CreationalContextImpl<T> context)
getScopeAdapter in interface ScopeAdapterBean<T>public T create(CreationalContext<T> env)
Contextual
create in interface Contextual<T>env - the creation context used to support circular
references.
public void destroy(T instance,
CreationalContext<T> cxt)
Contextual@Disposal method
@PreDestroy methods
destroy in interface Contextual<T>instance - the instance to destroypublic java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints in interface Bean<T>public java.lang.Class<?> getBeanClass()
Bean
getBeanClass in interface Bean<T>public java.lang.String getName()
Bean
getName in interface Bean<T>public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Bean
getQualifiers in interface Bean<T>public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Bean
getScope in interface Bean<T>public java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> getStereotypes()
Bean
getStereotypes in interface Bean<T>public boolean isAlternative()
Bean
isAlternative in interface Bean<T>public boolean isNullable()
Bean
isNullable in interface Bean<T>public java.lang.String getId()
getId in interface PassivationCapablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||