org.apache.hivemind.impl
Class ServiceInterceptorContributionImpl

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.hivemind.impl.ServiceInterceptorContributionImpl
All Implemented Interfaces:
ServiceInterceptorContribution, Locatable, LocationHolder

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 ServiceInterceptorContribution.getPrecedingInterceptorIds(), but the indicating interceptors's behavior should follow this interceptor's.
 java.lang.String getName()
          Returns the name of the service interceptor.
 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 setName(java.lang.String name)
           
 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

getName

public java.lang.String getName()
Description copied from interface: ServiceInterceptorContribution
Returns the name of the service interceptor. The name is used for ordering the service interceptor with respect to other interceptors. The name defaults to the factoryServiceId if no name is specified.

Specified by:
getName in interface ServiceInterceptorContribution
Returns:
Returns the name.

setName

public void setName(java.lang.String name)

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)