Class PhaseInterceptorChain

  • All Implemented Interfaces:
    Iterable<Interceptor<? extends Message>>, InterceptorChain

    public class PhaseInterceptorChain
    extends Object
    implements InterceptorChain
    A PhaseInterceptorChain orders Interceptors according to the phase they participate in and also according to the before & after properties on an Interceptor.

    A List of phases is supplied to the PhaseInterceptorChain in the constructor. This class is typically instantiated from the PhaseChainCache class in this package. Interceptors that are added to the chain are ordered by phase. Within a phase, interceptors can order themselves. Each PhaseInterceptor has an ID. PhaseInterceptors can supply a Collection of IDs which they should run before or after, supplying fine grained ordering.