org.apache.fulcrum.yaafi.framework.interceptor
Class AvalonInterceptorInvocationHandler
java.lang.Object
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
AvalonInterceptorInvocationHandler
public AvalonInterceptorInvocationHandler(String serviceName,
String serviceShorthand,
Object serviceDelegate,
AvalonInterceptorService[] serviceInterceptorList)
- Constructor.
- Parameters:
serviceName
- the name of the serviceserviceShorthand
- the shorthand of the service being interceptedserviceDelegate
- the real service implementationserviceInterceptorList
- the list of interceptors to be invoked
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.