- 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>
public class SimpleJobBusDirectory<CTX> extends AbstractJobBusDirectory<CTX,String>
TheSimpleJobBusDirectory
is a ready to use implementation of a compositeJobBusDirectory
extending theAbstractJobBusDirectory
.
-
-
Constructor Summary
Constructors Constructor Description SimpleJobBusDirectory(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.HandleLookup
hasHandle, lookupHandle, removeHandle
-
Methods inherited from interface org.refcodes.jobbus.JobBus
execute, execute, execute, getException, getResult, getResult, getResult, hasException, hasResult, isExecuted, waitForExecution, waitForExecution
-
-
-
-
Constructor Detail
-
SimpleJobBusDirectory
public SimpleJobBusDirectory(CTX aContext)
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.
-
-