org.omnaest.utils.proxy.handler
Class MethodInvocationHandlerDecoratorToString

java.lang.Object
  extended by org.omnaest.utils.proxy.handler.MethodInvocationHandlerDecorator
      extended by org.omnaest.utils.proxy.handler.MethodInvocationHandlerDecoratorToString
All Implemented Interfaces:
MethodInvocationHandler

public abstract class MethodInvocationHandlerDecoratorToString
extends MethodInvocationHandlerDecorator

Decorator MethodInvocationHandler which captures a call for the Object.toString() method and forwards all other invocations.

Author:
Omnaest

Field Summary
 
Fields inherited from class org.omnaest.utils.proxy.handler.MethodInvocationHandlerDecorator
methodInvocationHandler
 
Constructor Summary
MethodInvocationHandlerDecoratorToString()
           
MethodInvocationHandlerDecoratorToString(MethodInvocationHandler methodInvocationHandler)
           
 
Method Summary
 Object handle(MethodCallCapture methodCallCapture)
          Handles a method invocation.
abstract  String handleToString()
          Handles the invocation of the Object.toString() method
 
Methods inherited from class org.omnaest.utils.proxy.handler.MethodInvocationHandlerDecorator
setMethodInvocationHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvocationHandlerDecoratorToString

public MethodInvocationHandlerDecoratorToString(MethodInvocationHandler methodInvocationHandler)
Parameters:
methodInvocationHandler -

MethodInvocationHandlerDecoratorToString

public MethodInvocationHandlerDecoratorToString()
Method Detail

handle

public Object handle(MethodCallCapture methodCallCapture)
              throws Throwable
Description copied from interface: MethodInvocationHandler
Handles a method invocation.

Returns:
Throws:
Throwable
See Also:
MethodCallCapture

handleToString

public abstract String handleToString()
Handles the invocation of the Object.toString() method

Returns:


Copyright © 2013. All Rights Reserved.