Class ExternalServiceInputFactoryImpl<O,M extends InputManagedObject>
java.lang.Object
net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<None,Indexed>
net.officefloor.compile.impl.structure.ExternalServiceInputFactoryImpl<O,M>
- Type Parameters:
O- Object Type.M-ManagedObjectType.
- All Implemented Interfaces:
ExternalServiceInputFactory<O,,M> ManagedFunction<None,,None> ManagedObjectSource<None,Indexed>
@PrivateSource
public class ExternalServiceInputFactoryImpl<O,M extends InputManagedObject>
extends AbstractManagedObjectSource<None,Indexed>
implements ExternalServiceInputFactory<O,M>, ManagedFunction<None,None>
ExternalServiceInputFactory implementation.-
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
ConstructorsConstructorDescriptionExternalServiceInputFactoryImpl(Class<O> objectType, Class<M> managedObjectType) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptioncreateExternalServiceInput(DeployedOfficeInput deployedOfficeInput) Creates theExternalServiceInputfor theDeployedOfficeInput.voidexecute(ManagedFunctionContext<None, None> context) Executes the function.protected ManagedObjectSynchronously obtains theManagedObject.Obtains theManagedObjecttype.protected voidOverridden to load meta-data.protected voidOverridden to load specifications.voidsetManagedObjectSource(OfficeFloorManagedObjectSource managedObjectSource) Specifies theOfficeFloorManagedObjectSource.voidstart(ManagedObjectExecuteContext<Indexed> context) Called once afterManagedObjectSource.init(ManagedObjectSourceContext)to indicate thisManagedObjectSourceshould start execution.Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObjectMethods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, stop
-
Constructor Details
-
ExternalServiceInputFactoryImpl
Instantiate.- Parameters:
objectType-ExternalServiceInputobject type.managedObjectType-ManagedObjecttype.
-
-
Method Details
-
getManagedObjectType
Obtains theManagedObjecttype.- Returns:
ManagedObjecttype.
-
setManagedObjectSource
Specifies theOfficeFloorManagedObjectSource.- Parameters:
managedObjectSource-OfficeFloorManagedObjectSource.
-
createExternalServiceInput
public ExternalServiceInputNode<O,M> createExternalServiceInput(DeployedOfficeInput deployedOfficeInput) Description copied from interface:ExternalServiceInputFactoryCreates theExternalServiceInputfor theDeployedOfficeInput.- Specified by:
createExternalServiceInputin interfaceExternalServiceInputFactory<O,M extends InputManagedObject> - Parameters:
deployedOfficeInput-DeployedOfficeInputto service.- Returns:
ExternalServiceInput.
-
loadSpecification
Description copied from class:AbstractAsyncManagedObjectSourceOverridden to load specifications.- Specified by:
loadSpecificationin classAbstractAsyncManagedObjectSource<None,Indexed> - Parameters:
context- Specifications.
-
loadMetaData
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None, Indexed> context) throws ExceptionDescription copied from class:AbstractAsyncManagedObjectSourceOverridden to load meta-data.- Specified by:
loadMetaDatain classAbstractAsyncManagedObjectSource<None,Indexed> - 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,M extends InputManagedObject> - Overrides:
startin classAbstractAsyncManagedObjectSource<None,Indexed> - Parameters:
context-ManagedObjectExecuteContextto use in starting thisManagedObjectSource.- Throws:
Exception- Should theManagedObjectSourcefail to start execution.
-
getManagedObject
Description copied from class:AbstractManagedObjectSourceSynchronously obtains theManagedObject.- Specified by:
getManagedObjectin classAbstractManagedObjectSource<None,Indexed> - Returns:
ManagedObject.- Throws:
Throwable- If fails to obtain theManagedObject.
-
execute
Description copied from interface:ManagedFunctionExecutes the function.- Specified by:
executein interfaceManagedFunction<O,M extends InputManagedObject> - Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
Throwable- Indicating failure of theManagedFunction.
-