net.sf.spif.ejb
Class StatelessEJBAccessor

java.lang.Object
  |
  +--net.sf.spif.ejb.StatelessEJBAccessor

public class StatelessEJBAccessor
extends java.lang.Object

Delegate for stateless ejb accessors

Version:
$Id: StatelessEJBAccessor.java,v 1.2 2003/02/05 22:15:45 bratseth Exp $
Author:
Jon S Bratseth

Method Summary
static StatelessEJBAccessor getAccessor(java.lang.String jndiName, java.lang.Class home, java.lang.Class remote)
          Returns an accessor.
 javax.ejb.EJBHome getHome()
          Returns a home object
 javax.ejb.EJBObject getRemote()
          Returns a home object
 void invalidateCache()
           
static void invalidateCaches()
          Invalidates all cached ejb objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAccessor

public static StatelessEJBAccessor getAccessor(java.lang.String jndiName,
                                               java.lang.Class home,
                                               java.lang.Class remote)
                                        throws ConfigurationException
Returns an accessor.

Parameters:
jndiName - the jndi name of the bean this is the accessor delegate of
home - the home interface Class of the bean this is the accessor delegate of
remote - the remote interface Class of the bean this is the accessor delegate of
Returns:
an accessor delegate for internal use in a specific accessor
Throws:
ConfigurationException - (a runtime exception) if the accessor has not been initialized

getHome

public javax.ejb.EJBHome getHome()
                          throws ConfigurationException
Returns a home object

Throws:
ConfigurationException - if the home cannot be found in the JNDI server

getRemote

public javax.ejb.EJBObject getRemote()
                              throws ConfigurationException
Returns a home object

Throws:
ConfigurationException - if the home cannot be found in the JNDI server

invalidateCache

public void invalidateCache()

invalidateCaches

public static void invalidateCaches()
Invalidates all cached ejb objects



Spif 1.01 (2003-04-03). http://spif.sf.net