org.apache.fulcrum.yaafi.framework.interceptor
Class AvalonInterceptorInvocationHandler

java.lang.Object
  extended by org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class AvalonInterceptorInvocationHandler
extends Object
implements InvocationHandler

The InvocationHandler invoked when a service call is routed through the dynamic proxy.

Author:
Siegfried Goeschl

Constructor Summary
AvalonInterceptorInvocationHandler(String serviceName, String serviceShorthand, Object serviceDelegate, AvalonInterceptorService[] serviceInterceptorList)
          Constructor.
 
Method Summary
 Object getServiceDelegate()
           
 AvalonInterceptorService[] getServiceInterceptorList()
           
 String getServiceName()
           
 String getServiceShorthand()
           
 Long getTransactionId()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AvalonInterceptorInvocationHandler

public AvalonInterceptorInvocationHandler(String serviceName,
                                          String serviceShorthand,
                                          Object serviceDelegate,
                                          AvalonInterceptorService[] serviceInterceptorList)
Constructor.

Parameters:
serviceName - the name of the service
serviceShorthand - the shorthand of the service being intercepted
serviceDelegate - the real service implementation
serviceInterceptorList - the list of interceptors to be invoked
Method Detail

getServiceDelegate

public Object getServiceDelegate()
Returns:
Returns the delegate.

getServiceInterceptorList

public AvalonInterceptorService[] getServiceInterceptorList()
Returns:
Returns the serviceInterceptorList.

getServiceName

public String getServiceName()
Returns:
Returns the serviceName.

getServiceShorthand

public String getServiceShorthand()
Returns:
Returns the serviceShorthand.

getTransactionId

public Long getTransactionId()
Returns:
Returns the transaction id

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable
See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.