|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InstantiationAssistant
The GLD user documentation defines InstantiationAssistant as "Your friendly class creator who gives you a warm and fuzzy feeling inside". The technical documentation says that it is just another interface which classes can implement if they can create classes that the XML Parser cannot instantiate. For instance non-static inner classes. The parser has to figure out which InstantiationAssistant to use : for an inner class it will normally use the parent class.
| Method Summary | |
|---|---|
boolean |
canCreateInstance(java.lang.Class request)
Tell our parser if we can create an instance of a certain class |
java.lang.Object |
createInstance(java.lang.Class request)
Create an instance of a certain class for our parser |
| Method Detail |
|---|
boolean canCreateInstance(java.lang.Class request)
request - The class of the object that the parser wants
java.lang.Object createInstance(java.lang.Class request)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
request - The class of the object that the parser wants
java.lang.ClassNotFoundException - If we don't know that class
java.lang.InstantiationException - In case something goes wrong
java.lang.IllegalAccessException - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||