Class BeanTaskFactory

    • Field Detail

      • INIT_PARAM_BEAN_TASK_DIR

        public static final java.lang.String INIT_PARAM_BEAN_TASK_DIR
        The init parameter that defines where to look for bean task configuration files.
        See Also:
        Constant Field Values
      • INIT_PARAM_SERVER_CONFIG_FILES_DEFAULT_LOCATION

        public static final java.lang.String INIT_PARAM_SERVER_CONFIG_FILES_DEFAULT_LOCATION
        The init parameter that defines where to look server configuration files.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BeanTaskFactory

        public BeanTaskFactory()
    • Method Detail

      • init

        public void init​(ContainerServices cntrSvcs,
                         TaskFactoryInfo config)
        Description copied from interface: TaskFactory
        Instructs the factory to initialize itself using the associated ContainerServices and task factory configuration objects.
        Parameters:
        cntrSvcs - The ContainerServices object.
        config - The task factory configuration object
      • newTask

        public Task newTask​(java.lang.String id)
                     throws TaskException
        Description copied from interface: TaskFactory
        Create a new instance of the Task whose identifier is 'id'.
        Parameters:
        id - The identifier of the Task to instantiate.
        Returns:
        A new instance of the Task whose ID is given.
        Throws:
        TaskException - If something fails in the creation of the task.
      • getRegisteredTaskIDs

        public java.util.Iterator<java.lang.String> getRegisteredTaskIDs​(TaskFactory.TaskCategory taskCat)
        Description copied from interface: TaskFactory
        Returns an Iterator of registered task IDs in the specified task category.
        Parameters:
        taskCat - The TaskFactory.TaskCategory in which task IDs are being requested.
        Returns:
        An Iterator of all registered task names.
      • getRegisteredTaskIDList

        public java.util.List<java.lang.String> getRegisteredTaskIDList​(TaskFactory.TaskCategory taskCat)
        Description copied from interface: TaskFactory
        Returns a List of registered task IDs in the specified task category.
        Parameters:
        taskCat - The TaskFactory.TaskCategory in which task IDs are being requested.
        Returns:
        An List of all registered task names. They are sorted alphabetically.
        Since:
        MicroStrategy Web 9.0.0
      • destroy

        public void destroy()
        Description copied from interface: TaskFactory
        Instructs the factory to destroy any persistent data structures.
      • shouldAdd

        protected boolean shouldAdd​(BeanTaskInfo bti)