public void assemble( ModuleAssembly assembly )
throws AssemblyException
{
assembly.services( ScheduleFactory.class );
assembly.entities( Schedules.class );
EntityDeclaration scheduleEntities = assembly.entities( CronSchedule.class, OnceSchedule.class );
ValueDeclaration scheduleValues = assembly.values( CronSchedule.class, OnceSchedule.class );
ServiceDeclaration schedulerDeclaration = assembly.services( SchedulerService.class )
.visibleIn( visibility() )
.instantiateOnStartup();
if( timeline )
{
scheduleEntities.withTypes( Timeline.class )
.withMixins( TimelineScheduleMixin.class )
.withConcerns( TimelineForScheduleConcern.class );
scheduleValues.withTypes( Timeline.class )
.withMixins( TimelineScheduleMixin.class )