public class InstanceCreationUtils extends java.lang.Object
Location, and
possibly initializing its properties.| Constructor and Description |
|---|
InstanceCreationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
createInstance(Module module,
java.lang.String initializer,
Location location)
Creates an instance.
|
public InstanceCreationUtils()
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.