deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.framework.util
Class DirectInterceptor

java.lang.Object
  extended by org.deegree.framework.util.Interceptor
      extended by org.deegree.framework.util.DirectInterceptor

public class DirectInterceptor
extends Interceptor

Since:
2.0
Version:
2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Torsten Friebe , last edited by: $Author: mschneider $
See Also:
Chain of Responsibility Design Pattern

Field Summary
protected  java.lang.Object target
          to invoke
 
Fields inherited from class org.deegree.framework.util.Interceptor
LOG, nextInterceptor
 
Constructor Summary
DirectInterceptor(java.lang.Object target)
           
 
Method Summary
protected  java.lang.Object getTarget()
           
protected  java.lang.Object handleInvocation(java.lang.reflect.Method method, java.lang.Object[] params)
          Do an invocation of the given method while being able to something else first.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected java.lang.Object target
to invoke

Constructor Detail

DirectInterceptor

public DirectInterceptor(java.lang.Object target)
Parameters:
target - to intercept
Method Detail

handleInvocation

protected java.lang.Object handleInvocation(java.lang.reflect.Method method,
                                            java.lang.Object[] params)
                                     throws java.lang.IllegalAccessException,
                                            java.lang.reflect.InvocationTargetException
Description copied from class: Interceptor
Do an invocation of the given method while being able to something else first.

Specified by:
handleInvocation in class Interceptor
Returns:
some object
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

getTarget

protected java.lang.Object getTarget()
Overrides:
getTarget in class Interceptor
Returns:
the target

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org