public class AdministratorSourceStandAlone extends Object
AdministratorSource
for stand-alone use.Constructor and Description |
---|
AdministratorSourceStandAlone() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String name,
String value)
Adds a property for the
AdministratorSource . |
<I> Duty<I,?,?> |
getDuty(Administrator<I,?> administrator,
int dutyIndex)
Obtains the
Duty from the Administrator . |
<I,A extends Enum<A>> |
getDuty(Administrator<I,A> administrator,
A dutyKey)
Obtains the
Duty from the Administrator . |
<I,A extends Enum<A>,AS extends AdministratorSource<I,A>> |
loadAdministratorSource(Class<AS> administratorSourceClass)
Loads the
AdministratorSource . |
public void addProperty(String name, String value)
AdministratorSource
.name
- Name of the property.value
- Value for the property.public <I,A extends Enum<A>,AS extends AdministratorSource<I,A>> AS loadAdministratorSource(Class<AS> administratorSourceClass) throws Exception
AdministratorSource
.I
- Extension interface type of ManagedObject
.A
- Duty
key type.AS
- AdministratorSource
type.administratorSourceClass
- Class of the AdministratorSource
.AdministratorSource
.Exception
- If fails to initialise AdministratorSource
.public <I,A extends Enum<A>> Duty<I,?,?> getDuty(Administrator<I,A> administrator, A dutyKey)
Duty
from the Administrator
.I
- Extension interface type of ManagedObject
.A
- Duty
key type.administrator
- Administrator
.dutyKey
- Key identifying the Duty
.Duty
for the key.public <I> Duty<I,?,?> getDuty(Administrator<I,?> administrator, int dutyIndex)
Duty
from the Administrator
.I
- Extension interface type of ManagedObject
.administrator
- Administrator
.dutyIndex
- Index identifying the Duty
.Duty
for the index.Copyright © 2005–2016. All rights reserved.