org.apache.hivemind.impl
Class ServiceInterceptorContributionImpl

java.lang.Object
  |
  +--org.apache.hivemind.impl.BaseLocatable
        |
        +--org.apache.hivemind.impl.ServiceInterceptorContributionImpl
All Implemented Interfaces:
Locatable, LocationHolder, ServiceInterceptorContribution

public final class ServiceInterceptorContributionImpl
extends BaseLocatable
implements ServiceInterceptorContribution

Implementation of ServiceInterceptorContribution.

Author:
Howard Lewis Ship

Constructor Summary
ServiceInterceptorContributionImpl()
           
 
Method Summary
 void createInterceptor(InterceptorStack stack)
          Invoked to actually create the interceptor and push it onto the stack.
 java.lang.String getFactoryServiceId()
          Returns the id of the factory that creates the interceptor.
 java.lang.String getFollowingInterceptorIds()
          As getPrecedingInterceptorIds(), but the indicating interceptors's behavior should follow this interceptor's.
 java.lang.String getPrecedingInterceptorIds()
          Returns a list interceptors service ids as a comma seperated list.
 void setContributingModule(Module module)
           
 void setFactoryServiceId(java.lang.String string)
           
 void setFollowingInterceptorIds(java.lang.String string)
           
 void setParameters(java.util.List list)
           
 void setPrecedingInterceptorIds(java.lang.String string)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

ServiceInterceptorContributionImpl

public ServiceInterceptorContributionImpl()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getFactoryServiceId

public java.lang.String getFactoryServiceId()
Description copied from interface: ServiceInterceptorContribution
Returns the id of the factory that creates the interceptor. Interceptor factories are simply another HiveMind service, one that implements ServiceInterceptorFactory.

Specified by:
getFactoryServiceId in interface ServiceInterceptorContribution

setFactoryServiceId

public void setFactoryServiceId(java.lang.String string)

createInterceptor

public void createInterceptor(InterceptorStack stack)
Description copied from interface: ServiceInterceptorContribution
Invoked to actually create the interceptor and push it onto the stack.

Specified by:
createInterceptor in interface ServiceInterceptorContribution

setContributingModule

public void setContributingModule(Module module)

setParameters

public void setParameters(java.util.List list)

getFollowingInterceptorIds

public java.lang.String getFollowingInterceptorIds()
Description copied from interface: ServiceInterceptorContribution
As ServiceInterceptorContribution.getPrecedingInterceptorIds(), but the indicating interceptors's behavior should follow this interceptor's.

Specified by:
getFollowingInterceptorIds in interface ServiceInterceptorContribution

getPrecedingInterceptorIds

public java.lang.String getPrecedingInterceptorIds()
Description copied from interface: ServiceInterceptorContribution
Returns a list interceptors service ids as a comma seperated list. The behavior provided by these interceptors should precede the behavior of this interceptor.

Each service id is fully qualified. May return null.

Specified by:
getPrecedingInterceptorIds in interface ServiceInterceptorContribution

setFollowingInterceptorIds

public void setFollowingInterceptorIds(java.lang.String string)

setPrecedingInterceptorIds

public void setPrecedingInterceptorIds(java.lang.String string)