Class EventHelper

    • Field Detail

      • m_SchedulerFactory

        protected static transient Map<Integer,​org.quartz.impl.StdSchedulerFactory> m_SchedulerFactory
        the scheduler factory.
    • Constructor Detail

      • EventHelper

        public EventHelper()
    • Method Detail

      • findEvent

        public Actor findEvent​(ActorHandler group,
                               EventReference name)
        Checks a control actor's children whether they contain the event that we're looking for.
        Parameters:
        group - the group to check
        name - the name of the event
        Returns:
        the event or null if not found
      • findEvent

        public Actor findEvent​(Actor root,
                               EventReference name)
        Tries to find the event referenced by its global name.
        Parameters:
        root - the root to search in
        name - the name of the event
        Returns:
        the event or null if not found
      • findEventRecursive

        public Actor findEventRecursive​(Actor actor,
                                        EventReference name)
        Tries to find the referenced event. First all possible actor handlers are located recursively (up to the root) that allow also singletons. This list of actors is then searched for the event.
        Parameters:
        actor - the actor to start from
        name - the name of the event
        Returns:
        the event or null if not found
        See Also:
        ActorUtils.findActorHandlers(Actor, boolean)
      • getDefaultScheduler

        public static org.quartz.Scheduler getDefaultScheduler​(int flowID)
                                                        throws org.quartz.SchedulerException
        Synchronized access for the default scheduler.
        Parameters:
        flowID - the flow ID is the ID of the scheduler
        Returns:
        the default scheduler
        Throws:
        org.quartz.SchedulerException - if scheduler cannot be initialized