|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.impl.InterceptorStackImpl
public final class InterceptorStackImpl
Implementation of the InterceptorStack interface; localizes
error checking in one place.
| Constructor Summary | |
|---|---|
InterceptorStackImpl(org.apache.commons.logging.Log log,
ServicePoint sep,
java.lang.Object root)
|
|
| 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 |
process(InterceptorDefinition interceptorDefinition)
Invoked to process the next interceptor contribution; these should be processed in ascending order. |
void |
push(java.lang.Object interceptor)
Pushes a new instance onto the stack. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InterceptorStackImpl(org.apache.commons.logging.Log log,
ServicePoint sep,
java.lang.Object root)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getServiceExtensionPointId()
InterceptorStack
getServiceExtensionPointId in interface InterceptorStackpublic Module getServiceModule()
InterceptorStack
getServiceModule in interface InterceptorStackpublic java.lang.Class getServiceInterface()
InterceptorStackServicePoint.getServiceInterface().
getServiceInterface in interface InterceptorStackpublic java.lang.Object peek()
InterceptorStack
peek in interface InterceptorStackpublic void push(java.lang.Object interceptor)
InterceptorStackInterceptorStack.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.
push in interface InterceptorStackpublic void process(InterceptorDefinition interceptorDefinition)
public org.apache.commons.logging.Log getServiceLog()
InterceptorStack
getServiceLog in interface InterceptorStack
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||