|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AdministratorSource<I,A extends Enum<A>>
Source to obtain a particular type of Administrator.
Implemented by the Administrator provider.
| Method Summary | |
|---|---|
Administrator<I,A> |
createAdministrator()
Creates a new Administrator. |
AdministratorSourceMetaData<I,A> |
getMetaData()
Obtains the meta-data to describe this. |
AdministratorSourceSpecification |
getSpecification()
Obtains the specification for this. |
void |
init(AdministratorSourceContext context)
Called only once after the AdministratorSource is instantiated. |
| Method Detail |
|---|
AdministratorSourceSpecification getSpecification()
Obtains the specification for this.
This will be called before any other methods, therefore this method must be able to return the specification immediately after a default constructor instantiation.
void init(AdministratorSourceContext context)
throws Exception
AdministratorSource is instantiated.
context - AdministratorSourceContext to initialise this instance
of the AdministratorSource.
Exception - Should the AdministratorSource fail to configure
itself from the input properties.AdministratorSourceMetaData<I,A> getMetaData()
Obtains the meta-data to describe this.
This is called after the #init(DutyContext) method and therefore
may use the configuration.
This should always return non-null. If there is a problem due to
incorrect configuration, the init(AdministratorSourceContext)
should indicate this via an exception.
Administrator<I,A> createAdministrator()
throws Throwable
Creates a new Administrator.
Administrator.
Throwable - If fails to create the Administrator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||