org.apache.hivemind
Interface ServiceInterceptorFactory

All Known Implementing Classes:
LoggingInterceptorFactory

public interface ServiceInterceptorFactory

Interface defining an interceptor factory, an object that can create an interceptor. Interceptors are objects that implement a particular interface, adding logic before or after invoking methods on a wrapped object (implementing the same instance).

Implementations must be stateless and multi-threaded. An interceptor may only be applied once to any single service. The factory will only be invoked once for any single service (even in the case of non-standard service models such as threaded and pooled).

Author:
Howard Lewis Ship

Method Summary
 void createInterceptor(InterceptorStack stack, Module invokingModule, java.util.List parameters)
          Creates an interceptor and pushes it onto the interceptor stack.
 

Method Detail

createInterceptor

void createInterceptor(InterceptorStack stack,
                       Module invokingModule,
                       java.util.List parameters)
Creates an interceptor and pushes it onto the interceptor stack.