Class DefaultScheduleFactory

  • All Implemented Interfaces:

    public class DefaultScheduleFactory
    extends Object
    implements IScheduleFactory
    A schedule factory that constructs Schedules.
    $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
    Jerry Vos
    • Constructor Detail

      • DefaultScheduleFactory

        public DefaultScheduleFactory​(ISchedulableActionFactory defaultActionFactory)
        Constructs this ScheduleFactory which will default to creating schedules with the specified action factory
        defaultActionFactory - the default action factory the created schedules will be fed
    • Method Detail

      • createSchedule

        public ISchedule createSchedule​(ISchedulableActionFactory factory)
        Creates a Schedule that will use the specified ISchedulableActionFactory to create its scheduled actions.
        Specified by:
        createSchedule in interface IScheduleFactory
        factory - the factory to use to create the actions that the Schedule will schedule
        a schedule that uses the specified factory
      • createSchedule

        public ISchedule createSchedule()
        Creates a Schedule that by default uses the factory set in this interface to create its scheduled actions.

        The behavior that occurs when a default action factory has not been set is per-implementation specific, but in most cases there should be a reasonable default.

        Specified by:
        createSchedule in interface IScheduleFactory
        a schedule that uses the default factory
      • setDefaultSchedulableActionFactory

        public void setDefaultSchedulableActionFactory​(ISchedulableActionFactory defaultFactory)
        Sets the action factory that will be used when createSchedule is called with no arguments.
        Specified by:
        setDefaultSchedulableActionFactory in interface IScheduleFactory
        defaultFactory - the default factory to use if one isn't specified