public class MicroModelLoader extends AbstractModelLoader
AbstractModelLoader.BrokenModel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_EXTENSION_MICRO
The component file extension.
|
protected MicroClassReader |
reader
The xml reader.
|
extensions, modelcache, registered
Constructor and Description |
---|
MicroModelLoader()
Create a new BPMN model loader.
|
Modifier and Type | Method and Description |
---|---|
protected ICacheableModel |
doLoadModel(java.lang.String name,
java.lang.String[] imports,
ResourceInfo info,
java.lang.ClassLoader classloader,
java.lang.Object context)
Load a model.
|
protected ResourceInfo |
getResourceInfo(java.lang.String name,
java.lang.String extension,
java.lang.String[] imports,
java.lang.ClassLoader classloader)
Find the file for a given name.
|
MicroModel |
loadComponentModel(java.lang.String name,
java.lang.String[] imports,
IResourceIdentifier clkey,
java.lang.ClassLoader classloader,
java.lang.Object context)
Load a component model.
|
clearModelCache, deregisterModel, getCachedModel, getResourceInfo, getResourceInfo0, loadModel, loadModel, registerModel
public static final java.lang.String FILE_EXTENSION_MICRO
protected MicroClassReader reader
public MicroModel loadComponentModel(java.lang.String name, java.lang.String[] imports, IResourceIdentifier clkey, java.lang.ClassLoader classloader, java.lang.Object context) throws java.lang.Exception
name
- The filename or logical name (resolved via imports and extensions).imports
- The imports, if any.java.lang.Exception
protected ICacheableModel doLoadModel(java.lang.String name, java.lang.String[] imports, ResourceInfo info, java.lang.ClassLoader classloader, java.lang.Object context) throws java.lang.Exception
doLoadModel
in class AbstractModelLoader
name
- The original name (i.e. not filename).info
- The resource info.java.lang.Exception
protected ResourceInfo getResourceInfo(java.lang.String name, java.lang.String extension, java.lang.String[] imports, java.lang.ClassLoader classloader) throws java.lang.Exception
getResourceInfo
in class AbstractModelLoader
name
- The filename or logical name (resolved via imports and extension).extension
- The required extension.imports
- The imports, if any.java.lang.Exception