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

java.lang.Object
  extended by org.jboss.ejb3.nointerface.impl.jndi.AbstractNoInterfaceViewBinder
Direct Known Subclasses:
SessionlessBeanNoInterfaceViewBinder, StatefulBeanNoInterfaceViewBinder

public abstract class AbstractNoInterfaceViewBinder
extends java.lang.Object

AbstractNoInterfaceViewJNDIBinder

Version:
$Revision: $
Author:
Jaikiran Pai

Field Summary
protected  java.lang.Class<?> beanClass
           
protected  org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext
          The endpoint context which will be used while creating the NoInterfaceViewInvocationHandler
protected  javax.naming.Context jndiContext
           
protected  java.lang.String noInterfaceViewJNDIName
           
protected  org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData sessionBeanMetaData
           
 
Constructor Summary
AbstractNoInterfaceViewBinder(javax.naming.Context jndiCtx, java.lang.String jndiName, java.lang.Class<?> beanClass, org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData beanMetaData)
          Creates a jndi binder
 
Method Summary
protected abstract  void bind()
           
protected  void prettyPrintJNDIBindingInfo()
          Utility method to log the jndi name, to which the no-interface view of the bean represented by the sessionBean, will be bound.
 void setEndpointContext(org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext)
           
 void start()
           
 void stop()
           
protected abstract  void unbind()
           
 
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 context which will be used while creating the NoInterfaceViewInvocationHandler


beanClass

protected java.lang.Class<?> beanClass

sessionBeanMetaData

protected org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData sessionBeanMetaData

jndiContext

protected javax.naming.Context jndiContext

noInterfaceViewJNDIName

protected java.lang.String noInterfaceViewJNDIName
Constructor Detail

AbstractNoInterfaceViewBinder

public AbstractNoInterfaceViewBinder(javax.naming.Context jndiCtx,
                                     java.lang.String jndiName,
                                     java.lang.Class<?> beanClass,
                                     org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData beanMetaData)
Creates a jndi binder

Parameters:
endPointCtx - The endpoint context which will be used by the NoInterfaceViewInvocationHandler
Method Detail

start

public void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception

bind

protected abstract void bind()
                      throws javax.naming.NamingException
Throws:
javax.naming.NamingException

unbind

protected abstract void unbind()
                        throws javax.naming.NamingException
Throws:
javax.naming.NamingException

prettyPrintJNDIBindingInfo

protected void prettyPrintJNDIBindingInfo()
Utility method to log the jndi name, to which the no-interface view of the bean represented by the sessionBean, will be bound.


setEndpointContext

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


Copyright © 2010. All Rights Reserved.