jrun.ejb.interceptors
Class AbstractInterceptor

jrunx.kernel.ServiceAdapter
  |
  +--jrun.ejb.interceptors.AbstractInterceptor
All Implemented Interfaces:
Interceptor, InterceptorMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean
Direct Known Subclasses:
EJBSecurityInterceptor, EntityInstanceInterceptor, EntitySynchronizationInterceptor, InvokerInterceptor, LoggerInterceptor, MessageDrivenInstanceInterceptor, OTSTransactionInterceptor, StatefulClusterInterceptor, StatefulSessionInstanceInterceptor, StatelessSessionInstanceInterceptor, TransactionInterceptor

public abstract class AbstractInterceptor
extends ServiceAdapter
implements Interceptor

This is the base implementation of an Interceptor for an EJBContainer. Functionality is provided to get/set the next and previous Interceptors linked to this one, and to get/set the Container to which this Interceptor belongs. A convenience method for accessing the Container's MetaData is also provided.

See Also:
Serialized Form

Field Summary
protected  EJBContainer container
           
protected static java.lang.String ISFIRST_MESSAGE
           
protected static java.lang.String ISLAST_MESSAGE
           
protected  Interceptor next
           
protected  Interceptor previous
           
 
Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
AbstractInterceptor(EJBContainer container)
           
 
Method Summary
 EJBContainer getContainer()
           
 java.lang.String getContainerName()
           
 EJBMetaData getEJBMetaData()
           
 Interceptor getNext()
           
 java.lang.String getNextInterceptorName()
           
 Interceptor getPrevious()
           
 java.lang.String getPreviousInterceptorName()
           
 java.lang.Object invokeHomeMethod(EJBInvocation ctx)
           
 java.lang.Object invokeObjectMethod(EJBInvocation ctx)
           
 void setNext(Interceptor interceptor)
           
 void setPrevious(Interceptor interceptor)
           
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, init, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, start, stop, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Field Detail

container

protected EJBContainer container

previous

protected Interceptor previous

next

protected Interceptor next

ISFIRST_MESSAGE

protected static java.lang.String ISFIRST_MESSAGE

ISLAST_MESSAGE

protected static java.lang.String ISLAST_MESSAGE
Constructor Detail

AbstractInterceptor

public AbstractInterceptor(EJBContainer container)
Method Detail

getContainerName

public java.lang.String getContainerName()
Specified by:
getContainerName in interface InterceptorMBean

getNextInterceptorName

public java.lang.String getNextInterceptorName()
Specified by:
getNextInterceptorName in interface InterceptorMBean

getPreviousInterceptorName

public java.lang.String getPreviousInterceptorName()
Specified by:
getPreviousInterceptorName in interface InterceptorMBean

getContainer

public EJBContainer getContainer()
Specified by:
getContainer in interface Interceptor

setNext

public void setNext(Interceptor interceptor)
Specified by:
setNext in interface Interceptor

getNext

public Interceptor getNext()
Specified by:
getNext in interface Interceptor

setPrevious

public void setPrevious(Interceptor interceptor)
Specified by:
setPrevious in interface Interceptor

getPrevious

public Interceptor getPrevious()
Specified by:
getPrevious in interface Interceptor

getEJBMetaData

public EJBMetaData getEJBMetaData()
Specified by:
getEJBMetaData in interface Interceptor

invokeHomeMethod

public java.lang.Object invokeHomeMethod(EJBInvocation ctx)
                                  throws java.lang.Exception
Specified by:
invokeHomeMethod in interface Interceptor

invokeObjectMethod

public java.lang.Object invokeObjectMethod(EJBInvocation ctx)
                                    throws java.lang.Exception
Specified by:
invokeObjectMethod in interface Interceptor


Copyright � 2002 Macromedia Corporation. All Rights Reserved.