org.springframework.ejb.access
Class AbstractSlsbInvokerInterceptor

java.lang.Object
  extended byorg.springframework.jndi.AbstractJndiLocator
      extended byorg.springframework.ejb.access.AbstractSlsbInvokerInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, InitializingBean, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
Direct Known Subclasses:
AbstractRemoteSlsbInvokerInterceptor, LocalSlsbInvokerInterceptor

public abstract class AbstractSlsbInvokerInterceptor
extends AbstractJndiLocator
implements org.aopalliance.intercept.MethodInterceptor

Superclass for AOP interceptors invoking remote or local Stateless Session Beans. Such an interceptor must be the last interceptor in the advice chain. In this case, there is no target object.

Version:
$Id: AbstractSlsbInvokerInterceptor.java,v 1.10 2004/03/19 21:35:54 johnsonr Exp $
Author:
Rod Johnson

Field Summary
 
Fields inherited from class org.springframework.jndi.AbstractJndiLocator
CONTAINER_PREFIX, logger
 
Constructor Summary
AbstractSlsbInvokerInterceptor()
           
 
Method Summary
protected  void afterLocated()
          Initialization hook after the AbstractJndiLocator's located callback.
protected  java.lang.Object create()
          Invoke the create() method on the cached EJB home.
protected  java.lang.Object getCachedEjbHome()
           
protected  void located(java.lang.Object jndiObject)
          Implementation of AbstractJndiLocator's callback, to cache the home wrapper.
 
Methods inherited from class org.springframework.jndi.AbstractJndiLocator
afterPropertiesSet, getJndiEnvironment, getJndiName, getJndiTemplate, isResourceRef, setJndiEnvironment, setJndiName, setJndiTemplate, setResourceRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.aopalliance.intercept.MethodInterceptor
invoke
 

Constructor Detail

AbstractSlsbInvokerInterceptor

public AbstractSlsbInvokerInterceptor()
Method Detail

getCachedEjbHome

protected java.lang.Object getCachedEjbHome()
Returns:
the cached home object

located

protected void located(java.lang.Object jndiObject)
Implementation of AbstractJndiLocator's callback, to cache the home wrapper. Invokes afterLocated() after execution.

Specified by:
located in class AbstractJndiLocator
Parameters:
jndiObject - object successfully retrieved from JNDI
See Also:
afterLocated()

afterLocated

protected void afterLocated()
Initialization hook after the AbstractJndiLocator's located callback. This implementation does nothing.

See Also:
located(java.lang.Object)

create

protected java.lang.Object create()
                           throws java.lang.reflect.InvocationTargetException
Invoke the create() method on the cached EJB home.

Returns:
a new EJBObject or EJBLocalObject
Throws:
java.lang.reflect.InvocationTargetException


Copyright (C) 2003-2004 The Spring Framework Project.