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
ConstructorsConstructorDescriptionSimpleJobBusDirectory(CTX aContext) Instantiates theSimpleJobBusDirectorywith the provided context and and a pre-definedStringobjects generatingHandleGenerator. -
Method Summary
Methods inherited from class org.refcodes.jobbus.AbstractJobBusDirectory
handleReferences, handlesMethods 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, waitForExecutionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.refcodes.component.FlushHandle
flush, flushUnchecked, hasFlushMethods inherited from interface org.refcodes.component.HandleLookup
hasHandle, lookupHandle, removeHandleMethods inherited from interface org.refcodes.jobbus.JobBus
execute, execute, execute, getException, getResult, getResult, getResult, hasException, hasResult, isExecuted, waitForExecution, waitForExecutionMethods inherited from interface org.refcodes.component.ProgressHandle
getProgress, hasProgressMethods inherited from interface org.refcodes.component.ResetHandle
hasReset, reset
-
Constructor Details
-
SimpleJobBusDirectory
Instantiates theSimpleJobBusDirectorywith the provided context and and a pre-definedStringobjects 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.
-