Class 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>
The SimpleJobBusDirectory is a ready to use implementation of a composite JobBusDirectory extending the AbstractJobBusDirectory.
  • Constructor Details

    • SimpleJobBusDirectory

      public SimpleJobBusDirectory(CTX aContext)
      Instantiates the SimpleJobBusDirectory with the provided context and and a pre-defined String objects generating HandleGenerator. 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.