public interface AdministratorSource<I,A extends Enum<A>>
Source to obtain a particular type of Administrator
.
Implemented by the Administrator
provider.
Modifier and Type | Method and Description |
---|---|
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. |
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(AdministratorSourceContext)
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
.Copyright © 2005–2016. All rights reserved.