org.smartcc
Class LocalSessionContainer

java.lang.Object
  |
  +--org.smartcc.LocalSessionContainer

public class LocalSessionContainer
extends java.lang.Object

A container for local session beans. The container populates the local jndi namespace of the session bean with env-entries and home interface proxies for ejb-refs and ejb-local-refs.

Version:
$Revision: 1.1.1.1 $
Author:
Holger Engels

Constructor Summary
LocalSessionContainer(java.lang.ClassLoader classLoader)
           
 
Method Summary
protected  void bindEJBRefs()
           
protected  void bindEnvEntries()
           
 javax.ejb.EJBLocalObject create(java.lang.Object[] args)
          Return the shared instance (stateless) or create a new instance (stateful) of the local interface proxy.
protected  javax.ejb.EJBLocalObject createInstance(java.lang.Object[] args)
           
protected  void destroy(javax.ejb.EJBLocalObject ejb)
           
 java.lang.Class getBeanClass()
          The session bean implementation class
protected  java.lang.ClassLoader getClassLoader()
           
 javax.ejb.EJBLocalHome getHome()
          Get / create the home interface proxy.
 java.lang.Class getLocalHomeInterfaceClass()
          The local home interface class
 java.lang.Class getLocalInterfaceClass()
          The local interface class
 SessionMetaData getMetaData()
          Get the SessionMetaData.
 boolean isStatelessSession()
          Tell, wether the session bean is stateless
protected  void setContextClassLoader()
           
 void setMetaData(SessionMetaData sessionMetaData)
          Set the SessionMetaData that configures this container.
protected  void unsetContextClassLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalSessionContainer

public LocalSessionContainer(java.lang.ClassLoader classLoader)
Method Detail

setMetaData

public void setMetaData(SessionMetaData sessionMetaData)
Set the SessionMetaData that configures this container.

Parameters:
sessionMetaData - the value for sessionMetaData

getClassLoader

protected java.lang.ClassLoader getClassLoader()

getMetaData

public SessionMetaData getMetaData()
Get the SessionMetaData.

Returns:
the SessionMetaData

getLocalHomeInterfaceClass

public java.lang.Class getLocalHomeInterfaceClass()
The local home interface class


getLocalInterfaceClass

public java.lang.Class getLocalInterfaceClass()
The local interface class


isStatelessSession

public boolean isStatelessSession()
Tell, wether the session bean is stateless


getBeanClass

public java.lang.Class getBeanClass()
The session bean implementation class


getHome

public javax.ejb.EJBLocalHome getHome()
Get / create the home interface proxy.


create

public javax.ejb.EJBLocalObject create(java.lang.Object[] args)
                                throws java.lang.Exception
Return the shared instance (stateless) or create a new instance (stateful) of the local interface proxy.

java.lang.Exception

destroy

protected void destroy(javax.ejb.EJBLocalObject ejb)

createInstance

protected javax.ejb.EJBLocalObject createInstance(java.lang.Object[] args)
                                           throws java.lang.Exception
java.lang.Exception

setContextClassLoader

protected void setContextClassLoader()

unsetContextClassLoader

protected void unsetContextClassLoader()

bindEnvEntries

protected void bindEnvEntries()

bindEJBRefs

protected void bindEJBRefs()


Copyright © 2002 DC-TSS. All Rights Reserved.