org.apache.hivemind
Interface InterceptorStack

All Known Implementing Classes:
InterceptorStackImpl

public interface InterceptorStack

Used when constructing an interceptor stack around a service implementation instance.

Author:
Howard Lewis Ship

Method Summary
 java.lang.String getServiceExtensionPointId()
          Return the full id of the service extension point for which interceptors are being fabricated.
 java.lang.Class getServiceInterface()
          Returns the interface for the service; the same as ServicePoint.getServiceInterface().
 org.apache.commons.logging.Log getServiceLog()
          Returns the Log instance that should be used to log any information about the service, or the construction of the service.
 Module getServiceModule()
          Returns the module which contains the service extension point.
 java.lang.Object peek()
          Returns the current top object on the stack.
 void push(java.lang.Object interceptor)
          Pushes a new instance onto the stack.
 

Method Detail

getServiceExtensionPointId

java.lang.String getServiceExtensionPointId()
Return the full id of the service extension point for which interceptors are being fabricated.


getServiceModule

Module getServiceModule()
Returns the module which contains the service extension point.


getServiceInterface

java.lang.Class getServiceInterface()
Returns the interface for the service; the same as ServicePoint.getServiceInterface().


peek

java.lang.Object peek()
Returns the current top object on the stack.


push

void push(java.lang.Object interceptor)
Pushes a new instance onto the stack. The new instance should be a wrapper around peek(), and should implement the service extension point's interface.

The stack checks that the interceptor is not null, and that the interceptor implements the service interface.


getServiceLog

org.apache.commons.logging.Log getServiceLog()
Returns the Log instance that should be used to log any information about the service, or the construction of the service.



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.