|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.config.xml.ObjectConfig<T>
public class ObjectConfig<T>
Represents a single object configured in XML.
| Constructor Summary | |
|---|---|
ObjectConfig()
|
|
| Method Summary | |
|---|---|
void |
addProperty(ConfigurationProperty property)
Adds a configuration property for this object. |
T |
createInstance()
Creates a new instance of the Class specified by the type property and applies all configuration properties to the newly created instance. |
Class<? extends T> |
getType()
Returns the type of this object. |
void |
setType(Class<? extends T> type)
Sets the type of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectConfig()
| Method Detail |
|---|
public void setType(Class<? extends T> type)
type - the type of this objectpublic Class<? extends T> getType()
public void addProperty(ConfigurationProperty property)
property - the configuration property to be added to this object.public T createInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||