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

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

public class SessionlessBeanNoInterfaceViewBinder
extends AbstractNoInterfaceViewBinder

Responsible for binding a nointerface view proxy into jndi, for EJBs which are *not* session aware (ex: Stateless beans and Singleton beans)

Version:
$Revision: $
Author:
Jaikiran Pai

Field Summary
 
Fields inherited from class org.jboss.ejb3.nointerface.impl.jndi.AbstractNoInterfaceViewBinder
beanClass, endpointContext, jndiContext, noInterfaceViewJNDIName, sessionBeanMetaData
 
Constructor Summary
SessionlessBeanNoInterfaceViewBinder(javax.naming.Context jndiCtx, java.lang.String jndiName, java.lang.Class<?> beanClass, org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData beanMetaData)
          Constructor
 
Method Summary
 void bind()
          Creates the no-interface view for the bean and binds it to the JNDI under the no-interface view jndi name obtained from sessionBeanMetadata.
 void unbind()
          Unbinds the no-interface view proxy from the JNDI
 
Methods inherited from class org.jboss.ejb3.nointerface.impl.jndi.AbstractNoInterfaceViewBinder
prettyPrintJNDIBindingInfo, setEndpointContext, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionlessBeanNoInterfaceViewBinder

public SessionlessBeanNoInterfaceViewBinder(javax.naming.Context jndiCtx,
                                            java.lang.String jndiName,
                                            java.lang.Class<?> beanClass,
                                            org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData beanMetaData)
Constructor

Parameters:
ctx -
beanClass -
sessionBeanMetadata -
Method Detail

bind

public void bind()
          throws javax.naming.NamingException
Creates the no-interface view for the bean and binds it to the JNDI under the no-interface view jndi name obtained from sessionBeanMetadata.

Specified by:
bind in class AbstractNoInterfaceViewBinder
Throws:
javax.naming.NamingException
See Also:
JavassistNoInterfaceViewFactory#createView(java.lang.reflect.InvocationHandler, Class)

unbind

public void unbind()
            throws javax.naming.NamingException
Unbinds the no-interface view proxy from the JNDI

Specified by:
unbind in class AbstractNoInterfaceViewBinder
Throws:
javax.naming.NamingException
See Also:
org.jboss.ejb3.nointerface.impl.jndi.NoInterfaceViewJNDIBinderFacade#unbindNoInterfaceView()


Copyright © 2010. All Rights Reserved.