org.prevayler.implementation
Class Sneaky

java.lang.Object
  extended by org.prevayler.implementation.Sneaky

public class Sneaky
extends Object

Things that normal code shouldn't do, and maybe tests shouldn't either, but that can be useful for some exceptional testing situations.


Constructor Summary
Sneaky()
           
 
Method Summary
static Object get(Object root, String path)
          Get a field value using reflection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sneaky

public Sneaky()
Method Detail

get

public static Object get(Object root,
                         String path)
                  throws Exception
Get a field value using reflection.

Parameters:
root - The object to start from.
path - The field name, or a "path" such as "a.b.c".
Throws:
Exception


Copyright © 2001-2013. All Rights Reserved.