public class Creator extends java.lang.Object
code
), but is sufficient to unit test the
class, especially listener methods.
One part of the enhancement is that the
specification
and
messages
properties of the page or
component class are converted into read/write properties that can be set via reflection
(including newInstance(Class, Map)
.
Constructor and Description |
---|
Creator() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
newInstance(java.lang.Class abstractClass)
Given a particular abstract class; will create an instance of that class.
|
java.lang.Object |
newInstance(java.lang.Class abstractClass,
java.util.Map properties)
Creates a new instance of a given class, and then initializes properties of the instance.
|
java.lang.Object |
newInstance(java.lang.Class abstractClass,
java.lang.Object[] properties)
A convienience (useful in test code) for invoking
newInstance(Class, Map) . |
public Creator()
public java.lang.Object newInstance(java.lang.Class abstractClass)
public java.lang.Object newInstance(java.lang.Class abstractClass, java.util.Map properties)
public java.lang.Object newInstance(java.lang.Class abstractClass, java.lang.Object[] properties)
newInstance(Class, Map)
. The Map
is constructed from the properties array, which consists of alternating keys and values.