org.qi4j.library.scheduler.bootstrap

## Class SchedulerAssembler

- java.lang.Object
- - org.qi4j.bootstrap.Assemblers.VisibilityConfig<SchedulerAssembler>
  - - org.qi4j.library.scheduler.bootstrap.SchedulerAssembler

- All Implemented Interfaces:
    Assembler, Assemblers.Configurable<SchedulerAssembler>, Assemblers.Visible<SchedulerAssembler>

      public class SchedulerAssembler
      extends Assemblers.VisibilityConfig<SchedulerAssembler>

  Assembler for Scheduler. Use this Assembler to add the Scheduler service to your application. This Assembler provide a fluent api to programmatically configure configuration defaults and activate the Timeline service assembly that allow to browse in past and future Task runs. Here is a full example:

            new SchedulerAssembler().
                    visibleIn( Visibility.layer ).
                    withConfig( configModuleAssembly, Visibility.application ).
                    withTimeline().
                    assemble( module );

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SchedulerAssembler()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `assemble(ModuleAssembly assembly)` Assemblers receive a callback to the ModuleAssembly they are supposed to configure.
    `SchedulerAssembler` | `withTimeline()` Activate the assembly of Timeline related services.

    - ### Methods inherited from class org.qi4j.bootstrap.Assemblers.VisibilityConfig

      `configModule, configVisibility, hasConfig, visibility, visibleIn, withConfig`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SchedulerAssembler

          public SchedulerAssembler()

  - ### Method Detail

    - #### withTimeline

          public SchedulerAssembler withTimeline()

      Activate the assembly of Timeline related services.
      Returns:
        SchedulerAssembler

    - #### assemble

          public void assemble(ModuleAssembly assembly)
                        throws AssemblyException

      Description copied from interface: `Assembler`
      Assemblers receive a callback to the ModuleAssembly they are supposed to configure. They can use this to register objects, composites, services etc. and the additional metadata that may exist for these artifacts.

      An Assembler may create new Modules by calling `ModuleAssembly.layer()` and then `LayerAssembly.module(String)` (String)}. This allows an Assembler to bootstrap an entire Layer with more Modules.

      Parameters:
        `assembly` - the Module to assemble
      Throws:
        `AssemblyException` - thrown if the assembler tries to do something illegal