java.lang.Object
org.refcodes.jobbus.AbstractJobBus<CTX,H>
org.refcodes.jobbus.AbstractJobBusDirectory<CTX,String>
org.refcodes.jobbus.SimpleJobBusDirectory<CTX>
- Type Parameters:
CTX
- The context type to use, can by any component, service or POJO.
- All Implemented Interfaces:
org.refcodes.component.FlushHandle<String>
,org.refcodes.component.HandleDirectory<String,
,org.refcodes.command.Undoable<CTX, ?, ?>> org.refcodes.component.HandleLookup<String,
,org.refcodes.command.Undoable<CTX, ?, ?>> org.refcodes.component.ProgressHandle<String>
,org.refcodes.component.ResetHandle<String>
,JobBus<CTX,
,String> JobBusDirectory<CTX,
String>
The
SimpleJobBusDirectory
is a ready to use implementation of a
composite JobBusDirectory
extending the
AbstractJobBusDirectory
.-
Constructor Summary
ConstructorDescriptionSimpleJobBusDirectory
(CTX aContext) Instantiates theSimpleJobBusDirectory
with the provided context and and a pre-definedString
objects generatingHandleGenerator
. -
Method Summary
Methods inherited from class org.refcodes.jobbus.AbstractJobBusDirectory
handleReferences, handles
Methods inherited from class org.refcodes.jobbus.AbstractJobBus
execute, execute, execute, flush, getException, getJob, getProgress, getResult, getResult, getResult, hasException, hasFlush, hasHandle, hasProgress, hasReset, hasResult, isExecuted, lookupHandle, removeHandle, reset, waitForExecution, waitForExecution
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.refcodes.component.FlushHandle
flush, flushUnchecked, hasFlush
Methods inherited from interface org.refcodes.component.HandleLookup
hasHandle, lookupHandle, removeHandle
Methods inherited from interface org.refcodes.jobbus.JobBus
execute, execute, execute, getException, getResult, getResult, getResult, hasException, hasResult, isExecuted, waitForExecution, waitForExecution
Methods inherited from interface org.refcodes.component.ProgressHandle
getProgress, hasProgress
Methods inherited from interface org.refcodes.component.ResetHandle
hasReset, reset
-
Constructor Details
-
SimpleJobBusDirectory
Instantiates theSimpleJobBusDirectory
with the provided context and and a pre-definedString
objects generatingHandleGenerator
. It is up to you which context (service,Component
, POJO) you want to provide to a job (Undoable
) when being executed.- Parameters:
aContext
- The context which is passed to the job (Undoable
) instances when being executed.
-