Package com.microstrategy.web.app.tasks
Class BeanTaskFactory
- java.lang.Object
 - 
- com.microstrategy.web.app.tasks.AppTaskFactory
 - 
- com.microstrategy.web.app.tasks.BeanTaskFactory
 
 
 
- 
- All Implemented Interfaces:
 TaskFactory
- Direct Known Subclasses:
 FilteredBeanTaskFactory
public class BeanTaskFactory extends AppTaskFactory
This class is the factory for creatingTaskinstances from "bean task configuration files". It reads files from the directory specified by an init parameter in the web.xml file.- Since:
 - MicroStrategy Web 8.1.0
 - See Also:
 INIT_PARAM_BEAN_TASK_DIR,INIT_PARAM_SERVER_CONFIG_FILES_DEFAULT_LOCATION
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.microstrategy.web.tasks.TaskFactory
TaskFactory.TaskCategory 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINIT_PARAM_BEAN_TASK_DIRThe init parameter that defines where to look for bean task configuration files.static java.lang.StringINIT_PARAM_SERVER_CONFIG_FILES_DEFAULT_LOCATIONThe init parameter that defines where to look server configuration files. 
- 
Constructor Summary
Constructors Constructor Description BeanTaskFactory() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Instructs the factory to destroy any persistent data structures.java.util.List<java.lang.String>getRegisteredTaskIDList(TaskFactory.TaskCategory taskCat)Returns a List of registered task IDs in the specified task category.java.util.Iterator<java.lang.String>getRegisteredTaskIDs(TaskFactory.TaskCategory taskCat)Returns an Iterator of registered task IDs in the specified task category.voidinit(ContainerServices cntrSvcs)Initializes the MicroStrategy Web environment.voidinit(ContainerServices cntrSvcs, TaskFactoryInfo config)Instructs the factory to initialize itself using the associated ContainerServices and task factory configuration objects.TasknewTask(java.lang.String id)Create a new instance of the Task whose identifier is 'id'.protected booleanshouldAdd(BeanTaskInfo bti)- 
Methods inherited from class com.microstrategy.web.app.tasks.AppTaskFactory
getMSTRWebController, getStyleCatalog, initializeBlockFactory 
 - 
 
 - 
 
- 
- 
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
 
 
 - 
 
- 
Method Detail
- 
init
public void init(ContainerServices cntrSvcs)
Description copied from class:AppTaskFactoryInitializes the MicroStrategy Web environment.- Specified by:
 initin interfaceTaskFactory- Overrides:
 initin classAppTaskFactory- Parameters:
 cntrSvcs- AContainerServicesinstance to use for creation.
 
- 
init
public void init(ContainerServices cntrSvcs, TaskFactoryInfo config)
Description copied from interface:TaskFactoryInstructs the factory to initialize itself using the associated ContainerServices and task factory configuration objects.- Parameters:
 cntrSvcs- TheContainerServicesobject.config- The task factory configuration object
 
- 
newTask
public Task newTask(java.lang.String id) throws TaskException
Description copied from interface:TaskFactoryCreate a new instance of the Task whose identifier is 'id'.- Parameters:
 id- The identifier of theTaskto 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:TaskFactoryReturns an Iterator of registered task IDs in the specified task category.- Parameters:
 taskCat- TheTaskFactory.TaskCategoryin which task IDs are being requested.- Returns:
 - An 
Iteratorof all registered task names. 
 
- 
getRegisteredTaskIDList
public java.util.List<java.lang.String> getRegisteredTaskIDList(TaskFactory.TaskCategory taskCat)
Description copied from interface:TaskFactoryReturns a List of registered task IDs in the specified task category.- Parameters:
 taskCat- TheTaskFactory.TaskCategoryin which task IDs are being requested.- Returns:
 - An 
Listof all registered task names. They are sorted alphabetically. - Since:
 - MicroStrategy Web 9.0.0
 
 
- 
destroy
public void destroy()
Description copied from interface:TaskFactoryInstructs the factory to destroy any persistent data structures. 
- 
shouldAdd
protected boolean shouldAdd(BeanTaskInfo bti)
 
 - 
 
 -