Package net.officefloor.frame.test
Class TestManagedObject.TestManagedObjectSource
java.lang.Object
net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
net.officefloor.frame.test.TestManagedObject.TestManagedObjectSource
- All Implemented Interfaces:
ManagedObjectSource<O,F>
@TestSource
public class TestManagedObject.TestManagedObjectSource
extends AbstractAsyncManagedObjectSource<O,F>
Test
ManagedObjectSource.-
Nested Class Summary
Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.DependencyLabeller<K extends Enum<K>>, AbstractAsyncManagedObjectSource.ExecutionLabeller, AbstractAsyncManagedObjectSource.Labeller<K extends Enum<K>>, AbstractAsyncManagedObjectSource.MetaDataContext<O extends Enum<O>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOverridden to load meta-data.protected voidOverridden to load specifications.voidSources aManagedObjectfrom thisManagedObjectSource.voidstart(ManagedObjectExecuteContext<F> context) Called once afterManagedObjectSource.init(ManagedObjectSourceContext)to indicate thisManagedObjectSourceshould start execution.Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, stop
-
Constructor Details
-
TestManagedObjectSource
public TestManagedObjectSource()
-
-
Method Details
-
loadSpecification
Description copied from class:AbstractAsyncManagedObjectSourceOverridden to load specifications.- Specified by:
loadSpecificationin classAbstractAsyncManagedObjectSource<O extends Enum<O>,F extends Enum<F>> - Parameters:
context- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<O, F> context) throws ExceptionDescription copied from class:AbstractAsyncManagedObjectSourceOverridden to load meta-data.- Specified by:
loadMetaDatain classAbstractAsyncManagedObjectSource<O extends Enum<O>,F extends Enum<F>> - Parameters:
context- Meta-data.- Throws:
Exception- If fails to load the meta-data.
-
start
Description copied from interface:ManagedObjectSourceCalled once after
ManagedObjectSource.init(ManagedObjectSourceContext)to indicate thisManagedObjectSourceshould start execution.On invocation of this method,
ProcessStateinstances may be invoked via theManagedObjectExecuteContext.- Specified by:
startin interfaceManagedObjectSource<O extends Enum<O>,F extends Enum<F>> - Overrides:
startin classAbstractAsyncManagedObjectSource<O extends Enum<O>,F extends Enum<F>> - Parameters:
context-ManagedObjectExecuteContextto use in starting thisManagedObjectSource.- Throws:
Exception- Should theManagedObjectSourcefail to start execution.
-
sourceManagedObject
Description copied from interface:ManagedObjectSourceSources aManagedObjectfrom thisManagedObjectSource.- Parameters:
user-ManagedObjectUserinterested in using theManagedObject.
-