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

java.lang.Object
  extended by org.jboss.ejb3.nointerface.impl.jndi.AbstractNoInterfaceViewJNDIBinder
All Implemented Interfaces:
NoInterfaceViewJNDIBinder
Direct Known Subclasses:
SessionAwareNoInterfaceViewJNDIBinder, SessionlessNoInterfaceViewJNDIBinder

public abstract class AbstractNoInterfaceViewJNDIBinder
extends Object
implements NoInterfaceViewJNDIBinder

AbstractNoInterfaceViewJNDIBinder

Version:
$Revision: $
Author:
Jaikiran Pai

Field Summary
protected  org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext
          The endpoint context which will be used while creating the NoInterfaceViewInvocationHandler
 
Constructor Summary
AbstractNoInterfaceViewJNDIBinder(org.jboss.kernel.spi.dependency.KernelControllerContext endPointCtx)
          Creates a jndi binder
 
Method Summary
protected  void ensureNoInterfaceViewExists(org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData beanMetadata)
          Ensures that the bean represented by the beanMetadata has a no-interface view.
protected  org.jboss.metadata.ejb.jboss.jndi.resolver.spi.SessionBean31JNDINameResolver getJNDINameResolver(org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData sessionBean)
           
protected  void prettyPrintJNDIBindingInfo(org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData sessionBeanMetaData, String noInterfaceViewJNDIName)
          Utility method to log the jndi name, to which the no-interface view of the bean represented by the sessionBean, will be bound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.ejb3.nointerface.spi.jndi.NoInterfaceViewJNDIBinder
bindNoInterfaceView, unbindNoInterfaceView
 

Field Detail

endpointContext

protected org.jboss.kernel.spi.dependency.KernelControllerContext endpointContext
The endpoint context which will be used while creating the NoInterfaceViewInvocationHandler

Constructor Detail

AbstractNoInterfaceViewJNDIBinder

public AbstractNoInterfaceViewJNDIBinder(org.jboss.kernel.spi.dependency.KernelControllerContext endPointCtx)
Creates a jndi binder

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

ensureNoInterfaceViewExists

protected void ensureNoInterfaceViewExists(org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData beanMetadata)
                                    throws IllegalStateException
Ensures that the bean represented by the beanMetadata has a no-interface view. If a no-interface view is not present, then it throws a IllegalStateException

Parameters:
beanMetadata - The bean metadata
Throws:
IllegalStateException

getJNDINameResolver

protected org.jboss.metadata.ejb.jboss.jndi.resolver.spi.SessionBean31JNDINameResolver getJNDINameResolver(org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData sessionBean)
Parameters:
sessionBean - The session bean metadata
Returns:
Returns a jndi-name resolver for the session bean

prettyPrintJNDIBindingInfo

protected void prettyPrintJNDIBindingInfo(org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData sessionBeanMetaData,
                                          String noInterfaceViewJNDIName)
Utility method to log the jndi name, to which the no-interface view of the bean represented by the sessionBean, will be bound.

Parameters:
sessionBeanMetaData - Session bean metadata
noInterfaceViewJNDIName - The jndi name to which the no-interface view will be bound


Copyright © 2010. All Rights Reserved.