org.apache.hivemind.definition.impl
Class InterceptorDefinitionImpl

java.lang.Object
  extended by org.apache.hivemind.definition.impl.ExtensionDefinitionImpl
      extended by org.apache.hivemind.definition.impl.InterceptorDefinitionImpl
All Implemented Interfaces:
ExtensionDefinition, InterceptorDefinition, Locatable
Direct Known Subclasses:
OrderedInterceptorDefinitionImpl

public class InterceptorDefinitionImpl
extends ExtensionDefinitionImpl
implements InterceptorDefinition

Default implementation of InterceptorDefinition. Implementations of this interface may additionally implement the Orderable interface if a certain interceptor order is required.

Author:
Achim Huegen

Constructor Summary
InterceptorDefinitionImpl(ModuleDefinition module)
           
InterceptorDefinitionImpl(ModuleDefinition module, java.lang.String name, Location location, InterceptorConstructor interceptorConstructor)
           
 
Method Summary
 InterceptorConstructor getInterceptorConstructor()
           
 java.lang.String getName()
           
 void setInterceptorConstructor(InterceptorConstructor interceptorConstructor)
          Sets the constructor implementation responsible for the creation of interceptor instances.
 void setName(java.lang.String name)
          Sets the name of the interceptor.
 
Methods inherited from class org.apache.hivemind.definition.impl.ExtensionDefinitionImpl
getLocation, getModule, getModuleId, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.definition.ExtensionDefinition
getModule, getModuleId
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

InterceptorDefinitionImpl

public InterceptorDefinitionImpl(ModuleDefinition module)

InterceptorDefinitionImpl

public InterceptorDefinitionImpl(ModuleDefinition module,
                                 java.lang.String name,
                                 Location location,
                                 InterceptorConstructor interceptorConstructor)
Method Detail

getInterceptorConstructor

public InterceptorConstructor getInterceptorConstructor()
Specified by:
getInterceptorConstructor in interface InterceptorDefinition
Returns:
the constructor for the creation of a interceptor instance.
See Also:
InterceptorDefinition.getInterceptorConstructor()

setInterceptorConstructor

public void setInterceptorConstructor(InterceptorConstructor interceptorConstructor)
Sets the constructor implementation responsible for the creation of interceptor instances.


getName

public java.lang.String getName()
Specified by:
getName in interface InterceptorDefinition
Returns:
the name of the interceptor. Used for ordering.
See Also:
InterceptorDefinition.getName()

setName

public void setName(java.lang.String name)
Sets the name of the interceptor.



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