|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The type of objects that can be created.public interface Instantiable<T>
An interface declaring the ability to create objects.
| Method Summary | |
|---|---|
T |
createInstance()
Creates an object. |
String |
getClassName()
Gets the fully qualified name of the Class of the objects that can
be created. |
Class<? extends T> |
loadClass()
Loads the class corresponding to the objects that are created by createInstance(). |
| Method Detail |
|---|
String getClassName()
Class of the objects that can
be created.
Class<? extends T> loadClass()
throws InstantiableException
createInstance().
Note that this class may not be precisely T.class but instead a
subclass thereof.
InstantiableExceptionfor an example of an
{@code Instantiable} type that typically instantiates objects of a
subtype of {@code T} rather than {@code T} itself.
T createInstance()
throws InstantiableException
InstantiableException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||