Interface Interceptor

All Superinterfaces:
Container, Disposable, Serializable, Startable
All Known Implementing Classes:
AbstractInterceptor, CachingContainer, ConcurrentContainer, ManageableContainer

public interface Interceptor extends Container
This interface describes an Interceptor which can be injected into the chain of Interceptor Dynamic Interceptor will be created thanks to the ServiceLoader so it must provide a constructor with no parameter.
Version:
$Id$
Author:
Nicolas Filotto
  • Method Details

    • setSuccessor

      void setSuccessor(Interceptor successor)
      Sets the successor of the Interceptor in the chain of Interceptor
      Parameters:
      successor - the successor
    • setHolder

      void setHolder(ExoContainer holder)
      Sets the holder which is mostly used when it is required to be able to go through the chain of Interceptor
      Parameters:
      holder - the holder of the container
    • setParent

      void setParent(ExoContainer parent)
      Sets the parent container
      Parameters:
      parent - the parent container
    • getId

      String getId()
      Gives an identifier to the Container, allowing to inject an Interceptor into the Interceptor chain.