Package org.refcodes.jobbus
Class JobBusDirectoryImpl<CTX>
- java.lang.Object
-
- org.refcodes.jobbus.AbstractJobBus<CTX,H>
-
- org.refcodes.jobbus.AbstractJobBusDirectory<CTX,java.lang.String>
-
- org.refcodes.jobbus.JobBusDirectoryImpl<CTX>
-
- Type Parameters:
CTX- The context type to use, can by anyComponent, service or POJO.
- All Implemented Interfaces:
org.refcodes.component.FlushHandle<CTX>,org.refcodes.component.HandleDirectory<H,org.refcodes.command.Undoable<CTX,?,?>>,org.refcodes.component.HandleLookup<CTX,H>,org.refcodes.component.ProgressHandle<CTX>,org.refcodes.component.ResetHandle<CTX>,JobBus<CTX,H>,JobBusDirectory<CTX,java.lang.String>
public class JobBusDirectoryImpl<CTX> extends AbstractJobBusDirectory<CTX,java.lang.String>
TheJobBusDirectoryImplis a ready to use implementation of a compositeJobBusDirectoryextending theAbstractJobBusDirectory.
-
-
Constructor Summary
Constructors Constructor Description JobBusDirectoryImpl(CTX aContext)Instantiates theJobBusDirectoryImplwith the provided context and and a pre-definedStringobjects generatingHandleGenerator.
-
Method Summary
-
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 org.refcodes.jobbus.AbstractJobBusDirectory
handleReferences, handles
-
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
-
JobBusDirectoryImpl
public JobBusDirectoryImpl(CTX aContext)
Instantiates theJobBusDirectoryImplwith 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.
-
-