org.apache.fulcrum.yaafi.framework.interceptor
Class AvalonInterceptorInvocationHandler
java.lang.Object
org.apache.fulcrum.yaafi.framework.interceptor.AvalonInterceptorInvocationHandler
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class AvalonInterceptorInvocationHandler
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
The InvocationHandler invoked when a service call is routed through
the dynamic proxy.
- Author:
- Siegfried Goeschl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AvalonInterceptorInvocationHandler
public AvalonInterceptorInvocationHandler(java.lang.String serviceName,
java.lang.String serviceShorthand,
java.lang.Object serviceDelegate,
AvalonInterceptorService[] serviceInterceptorList,
ReadWriteLock readWriteLock)
- 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 invokedreadWriteLock
- the YAAFI kernel lock
getServiceDelegate
public java.lang.Object getServiceDelegate()
- Returns:
- Returns the delegate.
getServiceInterceptorList
public AvalonInterceptorService[] getServiceInterceptorList()
- Returns:
- Returns the serviceInterceptorList.
getServiceName
public java.lang.String getServiceName()
- Returns:
- Returns the serviceName.
getServiceShorthand
public java.lang.String getServiceShorthand()
- Returns:
- Returns the serviceShorthand.
getTransactionId
public java.lang.Long getTransactionId()
- Returns:
- Returns the transaction id
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
- See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.