org.jboss.ejb3.nointerface.impl.jndi
Class NoInterfaceViewJNDIBinderFacade

java.lang.Object
  extended by org.jboss.ejb3.nointerface.impl.jndi.NoInterfaceViewJNDIBinderFacade

public class NoInterfaceViewJNDIBinderFacade
extends Object

NoInterfaceViewJNDIBinderFacade A NoInterfaceViewJNDIBinderFacade 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.

Version:
$Revision: $
Author:
Jaikiran Pai

Field Summary
protected  org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext
          The endpoint for which this NoInterfaceViewJNDIBinderFacade holds an no-interface view
 
Constructor Summary
NoInterfaceViewJNDIBinderFacade(Context ctx, Class<?> beanClass, org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData sessionBeanMetadata)
          Constructor
 
Method Summary
 void onStart()
          Will be called when the dependencies of this NoInterfaceViewJNDIBinderFacade 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endpointContext

protected org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext
The endpoint for which this NoInterfaceViewJNDIBinderFacade holds an no-interface view

Constructor Detail

NoInterfaceViewJNDIBinderFacade

public NoInterfaceViewJNDIBinderFacade(Context ctx,
                                       Class<?> beanClass,
                                       org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData sessionBeanMetadata)
Constructor

Parameters:
beanClass -
sessionBeanMetadata -
Method Detail

onStart

public void onStart()
             throws Exception
Will be called when the dependencies of this NoInterfaceViewJNDIBinderFacade are resolved and this MC bean reaches the START state. At this point, the endpointContext associated with this NoInterfaceViewJNDIBinderFacade 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 NoInterfaceViewJNDIBinderFacade indicates that the corresponding bean is eligible for no-interface view.

Throws:
Exception

onStop

public void onStop()
            throws Exception
Does any relevant cleanup

Throws:
Exception

setEndpointContext

public void setEndpointContext(org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext)
                        throws Exception
Parameters:
endpointContext - The KernelControllerContext corresponding to the endpoint
Throws:
Exception


Copyright © 2010. All Rights Reserved.