org.callbackparams.combine.reflect
Class Combined

java.lang.Object
  extended by org.callbackparams.combine.reflect.Combined

public class Combined
extends Object

Author:
Henrik Kaipe

Constructor Summary
Combined(Object coreValue)
           
 
Method Summary
 Object getCoreValue()
           
static Combined resurrectFromOtherClassLoader(Object combined2reload)
           
 Object retrieve(Object testInstance, Map valuesCache)
          Retrieves the core value of this Combined instance and does at least one out of two things:
1) Has the core value injected as a parameterized value into the specified valueField
2) Returns the core value in case it is to be available as callback, as specified by isCallback
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Combined

public Combined(Object coreValue)
Method Detail

resurrectFromOtherClassLoader

public static Combined resurrectFromOtherClassLoader(Object combined2reload)

getCoreValue

public Object getCoreValue()

retrieve

public Object retrieve(Object testInstance,
                       Map valuesCache)
Retrieves the core value of this Combined instance and does at least one out of two things:
1) Has the core value injected as a parameterized value into the specified valueField
2) Returns the core value in case it is to be available as callback, as specified by isCallback

Parameters:
testInstance - the test instance, onto which a possible parameterized value is to be injected; or the test-class
valuesCache - maps static methods to their return-value arrays as an attempt to avoid multiple invocations of staticMethod - in case it is an expensive method that needs to access the file-system on every invocation or something
Returns:
the callback-value that is represented by this Combined instance; or null in case isCallback is false and therewith specifies that the core value of this Combined instance is not a callback

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2013 Henrik Kaipe. All Rights Reserved.