|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource<D,F>
public abstract class AbstractAsyncManagedObjectSource<D extends Enum<D>,F extends Enum<F>>
Abstract ManagedObjectSource allowing to asynchronously source the
ManagedObject.
| Nested Class Summary | |
|---|---|
static interface |
AbstractAsyncManagedObjectSource.DependencyLabeller
Provide AbstractAsyncManagedObjectSource.DependencyLabeller functionality along with qualifying type of
dependency. |
static interface |
AbstractAsyncManagedObjectSource.Labeller
Provides the ability to label the required dependency or JobSequence. |
static interface |
AbstractAsyncManagedObjectSource.MetaDataContext<D extends Enum<D>,F extends Enum<F>>
Context for the ManagedObjectSource.getMetaData(). |
static interface |
AbstractAsyncManagedObjectSource.SpecificationContext
Context for the getSpecification(). |
| Constructor Summary | |
|---|---|
AbstractAsyncManagedObjectSource()
|
|
| Method Summary | |
|---|---|
ManagedObjectSourceMetaData<D,F> |
getMetaData()
Obtains the meta-data to describe this. |
ManagedObjectSourceSpecification |
getSpecification()
Obtains the specification for this. |
void |
init(ManagedObjectSourceContext<F> context)
Called only once after the ManagedObjectSource is instantiated. |
protected abstract void |
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<D,F> context)
Overridden to load meta-data. |
protected abstract void |
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications. |
void |
start(ManagedObjectExecuteContext<F> context)
Called once after ManagedObjectSource.init(ManagedObjectSourceContext) to indicate
this ManagedObjectSource should start execution. |
void |
stop()
Called to notify that the OfficeFloor is being closed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.officefloor.frame.spi.managedobject.source.ManagedObjectSource |
|---|
sourceManagedObject |
| Constructor Detail |
|---|
public AbstractAsyncManagedObjectSource()
| Method Detail |
|---|
public ManagedObjectSourceSpecification getSpecification()
ManagedObjectSourceObtains 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.
getSpecification in interface ManagedObjectSource<D extends Enum<D>,F extends Enum<F>>protected abstract void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
context - Specifications.
public void init(ManagedObjectSourceContext<F> context)
throws Exception
ManagedObjectSourceManagedObjectSource is instantiated.
init in interface ManagedObjectSource<D extends Enum<D>,F extends Enum<F>>context - ManagedObjectSourceContext to use in initialising.
Exception - Should the ManagedObjectSource fail to configure
itself from the input properties.
protected abstract void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<D,F> context)
throws Exception
context - Meta-data.
Exception - If fails to load the meta-data.public ManagedObjectSourceMetaData<D,F> getMetaData()
ManagedObjectSourceObtains the meta-data to describe this.
This is called after the ManagedObjectSource.init(ManagedObjectSourceContext) method
and therefore may use the configuration.
This should always return non-null. If there is a problem due to
incorrect configuration, the ManagedObjectSource.init(ManagedObjectSourceContext)
should indicate this via an exception.
getMetaData in interface ManagedObjectSource<D extends Enum<D>,F extends Enum<F>>
public void start(ManagedObjectExecuteContext<F> context)
throws Exception
ManagedObjectSource
Called once after ManagedObjectSource.init(ManagedObjectSourceContext) to indicate
this ManagedObjectSource should start execution.
On invocation of this method, ProcessState instances may be
invoked via the ManagedObjectExecuteContext.
start in interface ManagedObjectSource<D extends Enum<D>,F extends Enum<F>>context - ManagedObjectExecuteContext to use in starting this
ManagedObjectSource.
Exception - Should the ManagedObjectSource fail to start
execution.public void stop()
ManagedObjectSource
Called to notify that the OfficeFloor is being closed.
On return from this method, no further ProcessState instances may
be invoked.
stop in interface ManagedObjectSource<D extends Enum<D>,F extends Enum<F>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||