Class ApplicationModelLoader


  • public class ApplicationModelLoader
    extends AbstractModelLoader
    Loader for application files.
    • Field Detail

      • FILE_EXTENSION_APPLICATION

        public static final java.lang.String FILE_EXTENSION_APPLICATION
        The application file extension.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ApplicationModelLoader

        public ApplicationModelLoader​(java.util.Set<TypeInfo>[] mappings)
        Create a new BPMN model loader.
    • Method Detail

      • loadApplicationModel

        public CacheableKernelModel loadApplicationModel​(java.lang.String name,
                                                         java.lang.String[] imports,
                                                         IResourceIdentifier clkey,
                                                         java.lang.ClassLoader classloader,
                                                         java.lang.Object context)
                                                  throws java.lang.Exception
        Load a BPMN model.
        Parameters:
        name - The filename or logical name (resolved via imports and extensions).
        imports - The imports, if any.
        Throws:
        java.lang.Exception
      • doLoadModel

        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
        Load a model.
        Specified by:
        doLoadModel in class AbstractModelLoader
        Parameters:
        name - The original name (i.e. not filename).
        info - The resource info.
        Throws:
        java.lang.Exception