net.sf.crispy
Class InterceptorHandler

java.lang.Object
  extended bynet.sf.crispy.InterceptorHandler

public final class InterceptorHandler
extends java.lang.Object

Handle Interceptor- and Modify - Events.

Author:
Linke

Constructor Summary
InterceptorHandler()
           
 
Method Summary
 int addInterceptor(Interceptor pvProxyInterceptor)
          Add Interceptor.
 void addInterceptorFilter(InterceptorFilter pvFilter)
           
 void fireAfterMethodInvocation(InterceptorContext pvInterceptorContext)
           
 InterceptorContext fireAfterModifyInvocation(InterceptorContext pvInterceptorContext)
           
 void fireAfterNewInstance(java.lang.Class pvInterfaceClass, java.lang.Object pvProxyObject)
           
 boolean fireBeforeMethodInvocation(InterceptorContext pvInterceptorContext)
           
 InterceptorContext fireBeforeModifyInvocation(InterceptorContext pvInterceptorContext)
           
 void fireBeforeNewInstance(java.lang.Class pvInterfaceClass)
           
 void fireOnError(java.lang.Throwable pvThrowable)
           
 Interceptor getInterceptorByPos(int pvPos)
          Get Interceptor by Pos in List.
 InterceptorFilter getInterceptorFilterByPos(int pvPos)
           
 int getInterceptorFilterSize()
           
 java.util.Iterator getInterceptorIterator()
          Get Iterator over all registered Interceptors.
 int getInterceptorSize()
          Get size from registered Interceptors.
 Modifier getModifier()
           
 void removeAllInterceptors()
           
 Interceptor removeInterceptorByPos(int pvPos)
          Remove a registered Interceptor by position.
 InterceptorFilter removeInterceptorFilter(int pvPos)
           
 void setModifier(Modifier pvModifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorHandler

public InterceptorHandler()
Method Detail

addInterceptor

public int addInterceptor(Interceptor pvProxyInterceptor)
Add Interceptor.

Returns:
The position of the Interceptor in the list.

getInterceptorIterator

public java.util.Iterator getInterceptorIterator()
Get Iterator over all registered Interceptors.


getInterceptorByPos

public Interceptor getInterceptorByPos(int pvPos)
Get Interceptor by Pos in List.


getInterceptorSize

public int getInterceptorSize()
Get size from registered Interceptors.


removeInterceptorByPos

public Interceptor removeInterceptorByPos(int pvPos)
Remove a registered Interceptor by position.


removeAllInterceptors

public void removeAllInterceptors()

getModifier

public Modifier getModifier()

setModifier

public void setModifier(Modifier pvModifier)

addInterceptorFilter

public void addInterceptorFilter(InterceptorFilter pvFilter)

getInterceptorFilterSize

public int getInterceptorFilterSize()

getInterceptorFilterByPos

public InterceptorFilter getInterceptorFilterByPos(int pvPos)

removeInterceptorFilter

public InterceptorFilter removeInterceptorFilter(int pvPos)

fireBeforeNewInstance

public void fireBeforeNewInstance(java.lang.Class pvInterfaceClass)

fireAfterNewInstance

public void fireAfterNewInstance(java.lang.Class pvInterfaceClass,
                                 java.lang.Object pvProxyObject)

fireBeforeMethodInvocation

public boolean fireBeforeMethodInvocation(InterceptorContext pvInterceptorContext)

fireAfterMethodInvocation

public void fireAfterMethodInvocation(InterceptorContext pvInterceptorContext)

fireOnError

public void fireOnError(java.lang.Throwable pvThrowable)

fireBeforeModifyInvocation

public InterceptorContext fireBeforeModifyInvocation(InterceptorContext pvInterceptorContext)

fireAfterModifyInvocation

public InterceptorContext fireAfterModifyInvocation(InterceptorContext pvInterceptorContext)


Copyright © 2005-2006 Crispy. All Rights Reserved.