org.smartcc
Class SmartLocalRef

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

public class SmartLocalRef
extends java.lang.Object

The edge between an application client or local session bean to another local session bean. A smart ref consists of dynamic proxies to the local and local home of the target session bean and a chain of interceptors.

Version:
$Revision: 1.3 $
Author:
Holger Engels

Constructor Summary
SmartLocalRef(java.lang.ClassLoader classLoader)
           
 
Method Summary
protected  Interceptor configureInterceptor(InterceptorMetaData metaData)
           
 javax.ejb.EJBLocalObject create(java.lang.Object[] args, javax.ejb.EJBLocalObject object)
          Create the local interface proxy.
protected  java.lang.ClassLoader getClassLoader()
           
 javax.ejb.EJBLocalHome getHome()
          Get / create the home interface proxy.
 Interceptor getInterceptor()
          A link to the first interceptor.
 java.lang.Class getLocalHomeInterfaceClass()
          The local home interface class
 java.lang.Class getLocalInterfaceClass()
          The local interface class
 java.lang.String getLookup()
          The jndi name of the home proxy.
protected  void setContextClassLoader()
           
 void setMetaData(EJBLocalRefMetaData ejbLocalRefMetaData)
          Set the EJBLocalRefMetaData 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

SmartLocalRef

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

setMetaData

public void setMetaData(EJBLocalRefMetaData ejbLocalRefMetaData)
Set the EJBLocalRefMetaData that configures this container.

Parameters:
ejbLocalRefMetaData - the value for ejbLocalRefMetaData

configureInterceptor

protected Interceptor configureInterceptor(InterceptorMetaData metaData)
                                    throws java.lang.Exception
java.lang.Exception

getClassLoader

protected java.lang.ClassLoader getClassLoader()

setContextClassLoader

protected void setContextClassLoader()

unsetContextClassLoader

protected void unsetContextClassLoader()

getLocalHomeInterfaceClass

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


getLocalInterfaceClass

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


getLookup

public java.lang.String getLookup()
The jndi name of the home proxy.


getInterceptor

public Interceptor getInterceptor()
A link to the first interceptor.


getHome

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


create

public javax.ejb.EJBLocalObject create(java.lang.Object[] args,
                                       javax.ejb.EJBLocalObject object)
                                throws java.lang.Exception
Create the local interface proxy.

java.lang.Exception


Copyright © 2002 DC-TSS. All Rights Reserved.