|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.nointerface.mc.NoInterfaceViewJNDIBinder<T>
public abstract class NoInterfaceViewJNDIBinder<T extends org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData>
NoInterfaceViewJNDIBinder
A NoInterfaceViewJNDIBinder corresponds to a EJB which is eligible
for a no-interface view
This MC bean has dependencies (like the container) injected as necessary.
During its START phase this NoInterfaceViewJNDIBinder creates a no-interface view
and binds it to the jndi.
| Field Summary | |
|---|---|
protected java.lang.Class<?> |
beanClass
The bean class for which the no-interface view corresponds |
protected org.jboss.kernel.spi.dependency.KernelControllerContext |
endpointContext
The endpoint for which this NoInterfaceViewJNDIBinder holds
an no-interface view |
protected javax.naming.Context |
jndiCtx
JNDI naming context |
protected T |
sessionBeanMetadata
The bean metadata |
| Constructor Summary | |
|---|---|
protected |
NoInterfaceViewJNDIBinder(javax.naming.Context ctx,
java.lang.Class<?> beanClass,
T sessionBeanMetadata)
Constructor |
| Method Summary | ||
|---|---|---|
abstract void |
bindNoInterfaceView()
Bind the no-interface view |
|
protected org.jboss.metadata.ejb.jboss.jndi.resolver.spi.SessionBean31JNDINameResolver |
getJNDINameResolver()
Returns the jndi name resolver, which will be responsible for returning the appropriate jndi names for various views of the session bean |
|
static
|
getNoInterfaceViewJndiBinder(javax.naming.Context ctx,
java.lang.Class<?> beanClass,
T sessionBeanMetadata)
Returns an appropriate instance of NoInterfaceViewJNDIBinder based on the
sessionBeanMetadata |
|
void |
onStart()
Will be called when the dependencies of this NoInterfaceViewJNDIBinder are
resolved and this MC bean reaches the START state. |
|
void |
onStop()
Does any relevant cleanup |
|
void |
setEndpointContext(org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext)
|
|
abstract void |
unbindNoInterfaceView()
Unbind the no-interface view |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext
NoInterfaceViewJNDIBinder holds
an no-interface view
protected java.lang.Class<?> beanClass
protected T extends org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData sessionBeanMetadata
protected javax.naming.Context jndiCtx
| Constructor Detail |
|---|
protected NoInterfaceViewJNDIBinder(javax.naming.Context ctx,
java.lang.Class<?> beanClass,
T sessionBeanMetadata)
beanClass - sessionBeanMetadata - | Method Detail |
|---|
public static <T extends org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData> NoInterfaceViewJNDIBinder<T> getNoInterfaceViewJndiBinder(javax.naming.Context ctx,
java.lang.Class<?> beanClass,
T sessionBeanMetadata)
NoInterfaceViewJNDIBinder based on the
sessionBeanMetadata
ctx - JNDI naming context into which this NoInterfaceViewJNDIBinder will be
responsible for binding/unbinding objectsbeanClass - Bean classsessionBeanMetadata - Session bean metadata of the bean class
public abstract void bindNoInterfaceView()
throws javax.naming.NamingException
javax.naming.NamingException - If any exception while binding to JNDI
public abstract void unbindNoInterfaceView()
throws javax.naming.NamingException
javax.naming.NamingException - If any exception while unbinding from JNDI
public void onStart()
throws java.lang.Exception
NoInterfaceViewJNDIBinder are
resolved and this MC bean reaches the START state.
At this point, the endpointContext associated with this NoInterfaceViewJNDIBinder
is injected and is at a minimal of DESCRIBED state. We now create a no-interface view
for the corresponding bean.
Note: No validations (like whether the bean is eligible for no-interface view) is done at this
stage. It's assumed that the presence of a NoInterfaceViewJNDIBinder indicates that the
corresponding bean is eligible for no-interface view.
java.lang.Exception
public void onStop()
throws java.lang.Exception
java.lang.Exception
public void setEndpointContext(org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext)
throws java.lang.Exception
endpointContext - The KernelControllerContext corresponding to the endpoint
java.lang.Exceptionprotected org.jboss.metadata.ejb.jboss.jndi.resolver.spi.SessionBean31JNDINameResolver getJNDINameResolver()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||