Class ClassAdministration
- java.lang.Object
-
- net.officefloor.plugin.administration.clazz.ClassAdministration
-
- All Implemented Interfaces:
Administration<java.lang.Object,Indexed,Indexed>,AdministrationFactory<java.lang.Object,Indexed,Indexed>
public class ClassAdministration extends java.lang.Object implements AdministrationFactory<java.lang.Object,Indexed,Indexed>, Administration<java.lang.Object,Indexed,Indexed>
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ClassAdministration(ClassObjectFactory objectFactory, java.lang.reflect.Method administrationMethod, ClassDependencyFactory[] parameterFactories)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadminister(AdministrationContext<java.lang.Object,Indexed,Indexed> context)Administers theManagedObjectinstances.Administration<java.lang.Object,Indexed,Indexed>createAdministration()Creates theAdministration.
-
-
-
Constructor Detail
-
ClassAdministration
public ClassAdministration(ClassObjectFactory objectFactory, java.lang.reflect.Method administrationMethod, ClassDependencyFactory[] parameterFactories)
Initiate.- Parameters:
objectFactory-ClassObjectFactory.administrationMethod-Methodto invoke on theObjectfor thisAdministration.parameterFactories-ClassDependencyFactoryinstances.
-
-
Method Detail
-
createAdministration
public Administration<java.lang.Object,Indexed,Indexed> createAdministration() throws java.lang.Throwable
Description copied from interface:AdministrationFactoryCreates theAdministration.- Specified by:
createAdministrationin interfaceAdministrationFactory<java.lang.Object,Indexed,Indexed>- Returns:
Administration.- Throws:
java.lang.Throwable- If fails to createAdministration.
-
administer
public void administer(AdministrationContext<java.lang.Object,Indexed,Indexed> context) throws java.lang.Throwable
Description copied from interface:AdministrationAdministers theManagedObjectinstances.- Specified by:
administerin interfaceAdministration<java.lang.Object,Indexed,Indexed>- Parameters:
context-AdministrationContext.- Throws:
java.lang.Throwable- If fails to do duty.
-
-