jadex.application
Class ApplicationModelLoader

java.lang.Object
  extended by jadex.commons.AbstractModelLoader
      extended by jadex.application.ApplicationModelLoader

public class ApplicationModelLoader
extends AbstractModelLoader

Loader for application files.


Field Summary
static String FILE_EXTENSION_APPLICATION
          The application file extension.
protected  ApplicationXMLReader reader
          The xml reader.
 
Fields inherited from class jadex.commons.AbstractModelLoader
extensions, modelcache, registered
 
Constructor Summary
ApplicationModelLoader(Set[] mappings)
          Create a new BPMN model loader.
 
Method Summary
protected  ICacheableModel doLoadModel(String name, ResourceInfo info, ClassLoader classloader)
          Load a model.
 MApplicationType loadApplicationModel(String name, String[] imports, ClassLoader classloader)
          Load a BPMN model.
 
Methods inherited from class jadex.commons.AbstractModelLoader
clearModelCache, deregisterModel, getCachedModel, getResourceInfo, getResourceInfo, getResourceInfo0, loadModel, loadModel, registerModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_EXTENSION_APPLICATION

public static final String FILE_EXTENSION_APPLICATION
The application file extension.

See Also:
Constant Field Values

reader

protected ApplicationXMLReader reader
The xml reader.

Constructor Detail

ApplicationModelLoader

public ApplicationModelLoader(Set[] mappings)
Create a new BPMN model loader.

Method Detail

loadApplicationModel

public MApplicationType loadApplicationModel(String name,
                                             String[] imports,
                                             ClassLoader classloader)
                                      throws Exception
Load a BPMN model.

Parameters:
name - The filename or logical name (resolved via imports and extensions).
imports - The imports, if any.
Throws:
Exception

doLoadModel

protected ICacheableModel doLoadModel(String name,
                                      ResourceInfo info,
                                      ClassLoader classloader)
                               throws Exception
Load a model.

Specified by:
doLoadModel in class AbstractModelLoader
Parameters:
name - The original name (i.e. not filename).
info - The resource info.
Throws:
Exception


Copyright © 2010. All Rights Reserved.