org.drools.guvnor.server.ruleeditor.workitem
Class AbstractWorkDefinitionsLoader

java.lang.Object
  extended by org.drools.guvnor.server.ruleeditor.workitem.AbstractWorkDefinitionsLoader
All Implemented Interfaces:
WorkDefinitionsLoader
Direct Known Subclasses:
AssetWorkDefinitionsLoader, ConfigFileWorkDefinitionsLoader

public abstract class AbstractWorkDefinitionsLoader
extends Object
implements WorkDefinitionsLoader

Class to load Work Definitions


Field Summary
protected static String NEW_LINE
           
protected  Map<String,org.drools.process.core.WorkDefinition> workDefinitions
           
 
Constructor Summary
AbstractWorkDefinitionsLoader()
           
 
Method Summary
 Map<String,org.drools.process.core.WorkDefinition> getWorkDefinitions()
          Get the collection of Work Definitions
abstract  List<String> loadWorkDefinitions()
          Load the Work Definitions from whatever resource
protected  Map<String,org.drools.process.core.WorkDefinition> populateWorkDefinitions(List<String> workItemDefinitions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workDefinitions

protected Map<String,org.drools.process.core.WorkDefinition> workDefinitions

NEW_LINE

protected static final String NEW_LINE
Constructor Detail

AbstractWorkDefinitionsLoader

public AbstractWorkDefinitionsLoader()
Method Detail

loadWorkDefinitions

public abstract List<String> loadWorkDefinitions()
                                          throws Exception
Load the Work Definitions from whatever resource

Returns:
A List of Strings containing individual Work Definitions
Throws:
Exception

getWorkDefinitions

public Map<String,org.drools.process.core.WorkDefinition> getWorkDefinitions()
                                                                      throws Exception
Get the collection of Work Definitions

Specified by:
getWorkDefinitions in interface WorkDefinitionsLoader
Throws:
Exception

populateWorkDefinitions

protected Map<String,org.drools.process.core.WorkDefinition> populateWorkDefinitions(List<String> workItemDefinitions)


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.