net.spy.yamlmock
Class MapInvocationHandler

java.lang.Object
  extended by net.spy.yamlmock.MapInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class MapInvocationHandler
extends Object
implements InvocationHandler

Invocation handler that returns property access from a map.


Constructor Summary
MapInvocationHandler(Map<String,Object> m)
          Construct a MapInvocationHandler over the given map.
 
Method Summary
 Object invoke(Object o, Method m, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapInvocationHandler

public MapInvocationHandler(Map<String,Object> m)
Construct a MapInvocationHandler over the given map.

Method Detail

invoke

public Object invoke(Object o,
                     Method m,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2007 SPY Internetworking. All Rights Reserved.