|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.util.InstanceCreationUtils
public class InstanceCreationUtils
Code for creating an instance, possibly setting its Location
, and
possibly initializing its properties.
Constructor Summary | |
---|---|
InstanceCreationUtils()
|
Method Summary | |
---|---|
static java.lang.Object |
createInstance(Module module,
java.lang.String initializer,
Location location)
Creates an instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceCreationUtils()
Method Detail |
---|
public static java.lang.Object createInstance(Module module, java.lang.String initializer, Location location)
module
- the referencing module, used to resolve partial class namesinitializer
- The name of the class to instantiate, possibly followed by a list of properties
and values. I.e. com.examples.MyBean,property=value
.location
- The location to assign to the newly created instance, if it implements
LocationHolder
. Also the location used to report
errors creating or configuring the instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |