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

java.lang.Object
  extended by 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

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

Constructor Detail

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 service
serviceShorthand - the shorthand of the service being intercepted
serviceDelegate - the real service implementation
serviceInterceptorList - the list of interceptors to be invoked
readWriteLock - the YAAFI kernel lock
Method Detail

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.