|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ComponentClassType - the class or interface that the component is to implementReturnType - the interface returned from these methodspublic static interface DnaConfiguration.ChooseClass<ComponentClassType,ReturnType>

The interface used to configure the class used for a component.
| Method Summary | |
|---|---|
ReturnType |
usingClass(Class<? extends ComponentClassType> clazz)
Specify the class that should be instantiated for the instance. |
DnaConfiguration.LoadedFrom<ReturnType> |
usingClass(String classname)
Specify the name of the class that should be instantiated for the instance. |
| Method Detail |
|---|
DnaConfiguration.LoadedFrom<ReturnType> usingClass(String classname)
classname - the name of the class that should be instantiated
IllegalArgumentException - if the class name is null, empty, blank, or not a valid class nameReturnType usingClass(Class<? extends ComponentClassType> clazz)
clazz - the class that should be instantiated
DnaConfigurationException - if the class could not be accessed and instantiated (if needed)
IllegalArgumentException - if the class reference is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||