org.smartcc
Class SmartRef

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

public class SmartRef
extends java.lang.Object

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

Version:
$Revision: 1.3 $
Author:
Holger Engels

Constructor Summary
SmartRef(java.lang.ClassLoader classLoader)
           
 
Method Summary
protected  Interceptor configureInterceptor(InterceptorMetaData metaData)
           
 javax.ejb.EJBObject create(java.lang.Object[] args, RefHandle handle)
          Create the remote interface proxy.
protected  java.lang.ClassLoader getClassLoader()
           
 javax.ejb.EJBHome getHome()
          Get / create the home interface proxy.
 java.lang.Class getHomeInterfaceClass()
          The home interface class
 Interceptor getInterceptor()
          A link to the first interceptor.
 java.lang.String getLookup()
          The lookup.
 java.lang.String getName()
           
 java.util.Properties getProperties()
          Transport Properties.
 java.lang.Class getRemoteInterfaceClass()
          The remote interface class
protected  void setContextClassLoader()
           
 void setMetaData(EJBRefMetaData ejbRefMetaData)
          Set the EJBRefMetaData 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

SmartRef

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

setMetaData

public void setMetaData(EJBRefMetaData ejbRefMetaData)
Set the EJBRefMetaData that configures this container.

Parameters:
ejbRefMetaData - the value for ejbRefMetaData

configureInterceptor

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

getName

public java.lang.String getName()

getClassLoader

protected java.lang.ClassLoader getClassLoader()

setContextClassLoader

protected void setContextClassLoader()

unsetContextClassLoader

protected void unsetContextClassLoader()

getHomeInterfaceClass

public java.lang.Class getHomeInterfaceClass()
The home interface class


getRemoteInterfaceClass

public java.lang.Class getRemoteInterfaceClass()
The remote interface class


getLookup

public java.lang.String getLookup()
The lookup. Either a http url or a jndi name.


getProperties

public java.util.Properties getProperties()
Transport Properties. A transport might require additional information for lookup, etc.


getInterceptor

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


getHome

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


create

public javax.ejb.EJBObject create(java.lang.Object[] args,
                                  RefHandle handle)
                           throws java.lang.Exception
Create the remote interface proxy.

java.lang.Exception


Copyright © 2002 DC-TSS. All Rights Reserved.