net.sf.crispy.impl
Class ModifierChain

java.lang.Object
  extended bynet.sf.crispy.impl.ModifierChain
All Implemented Interfaces:
Modifier

public class ModifierChain
extends java.lang.Object
implements Modifier

You can link together several Modifier in a chain.

Author:
Linke

Constructor Summary
ModifierChain()
           
 
Method Summary
 void addModifier(Modifier pvModifier)
           
 InterceptorContext modifyAfterInvocation(InterceptorContext pvInterceptorContext)
          After invoke the method you can modify the result.
 InterceptorContext modifyBeforeInvocation(InterceptorContext pvInterceptorContext)
          Before invoke the method you can modify parameter and method.
 void removeModifier(int pvPos)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifierChain

public ModifierChain()
Method Detail

addModifier

public void addModifier(Modifier pvModifier)

removeModifier

public void removeModifier(int pvPos)

size

public int size()

modifyBeforeInvocation

public InterceptorContext modifyBeforeInvocation(InterceptorContext pvInterceptorContext)
Description copied from interface: Modifier
Before invoke the method you can modify parameter and method.

Specified by:
modifyBeforeInvocation in interface Modifier
Parameters:
pvInterceptorContext - InterceptorContext with Method and parameter.
Returns:
Modify InterceptorContext.

modifyAfterInvocation

public InterceptorContext modifyAfterInvocation(InterceptorContext pvInterceptorContext)
Description copied from interface: Modifier
After invoke the method you can modify the result.

Specified by:
modifyAfterInvocation in interface Modifier
Parameters:
pvInterceptorContext - InterceptorContext with result.
Returns:
Modify InterceptorContext.


Copyright © 2005-2006 Crispy. All Rights Reserved.