Package org.exoplatform.container
Class AbstractInterceptor
- java.lang.Object
-
- org.exoplatform.container.AbstractContainer
-
- org.exoplatform.container.AbstractInterceptor
-
- All Implemented Interfaces:
Serializable,Container,Interceptor,Disposable,Startable
- Direct Known Subclasses:
CachingContainer,ConcurrentContainer,ManageableContainer
public abstract class AbstractInterceptor extends AbstractContainer implements Interceptor
- Version:
- $Id$
- Author:
- Nicolas Filotto
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ExoContainerholderThe holder of theInterceptorchainprotected ExoContainerparentThe parent container-
Fields inherited from class org.exoplatform.container.AbstractContainer
delegate
-
-
Constructor Summary
Constructors Constructor Description AbstractInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Gives an identifier to the Container, allowing to inject anInterceptorinto theInterceptorchain.voidsetHolder(ExoContainer holder)Sets the holder which is mostly used when it is required to be able to go through the chain ofInterceptorvoidsetParent(ExoContainer parent)Sets the parent containervoidsetSuccessor(Interceptor successor)Sets the successor of the Interceptor in the chain ofInterceptor-
Methods inherited from class org.exoplatform.container.AbstractContainer
accept, createComponent, dispose, getComponentAdapter, getComponentAdapterOfType, getComponentAdapters, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, getManagementContext, getMBeanServer, getScopingObjectName, getSuccessor, initialize, registerComponentImplementation, registerComponentInstance, start, stop, unregisterComponent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.exoplatform.container.spi.Container
accept, createComponent, getComponentAdapter, getComponentAdapterOfType, getComponentAdapters, getComponentAdaptersOfType, getComponentInstance, getComponentInstanceOfType, getComponentInstancesOfType, getManagementContext, getMBeanServer, getScopingObjectName, getSuccessor, initialize, registerComponentImplementation, registerComponentInstance, unregisterComponent
-
Methods inherited from interface org.picocontainer.Disposable
dispose
-
-
-
-
Field Detail
-
holder
protected ExoContainer holder
The holder of theInterceptorchain
-
parent
protected ExoContainer parent
The parent container
-
-
Method Detail
-
setSuccessor
public void setSuccessor(Interceptor successor)
Sets the successor of the Interceptor in the chain ofInterceptor- Specified by:
setSuccessorin interfaceInterceptor- Parameters:
successor- the successor
-
setHolder
public void setHolder(ExoContainer holder)
Sets the holder which is mostly used when it is required to be able to go through the chain ofInterceptor- Specified by:
setHolderin interfaceInterceptor- Parameters:
holder- the holder of the container
-
setParent
public void setParent(ExoContainer parent)
Sets the parent container- Specified by:
setParentin interfaceInterceptor- Parameters:
parent- the parent container
-
getId
public String getId()
Gives an identifier to the Container, allowing to inject anInterceptorinto theInterceptorchain.- Specified by:
getIdin interfaceInterceptor
-
-