Package org.milyn.archive

Examples of org.milyn.archive.ArchiveClassLoader


        }

        ClassLoader threadCCL = Thread.currentThread().getContextClassLoader();

        try {
          ArchiveClassLoader archiveClassLoader = new ArchiveClassLoader(threadCCL, archive);

          Thread.currentThread().setContextClassLoader(archiveClassLoader);
                    loadMappingModels(mappingModels, baseURI, rootMappingModels);
                } finally {
          Thread.currentThread().setContextClassLoader(threadCCL);
View Full Code Here


        String zipFileName = edifactSpecFile.getName();

        urn = "org.milyn.edi.unedifact:" + zipFileName.substring(0, zipFileName.indexOf('.')) + "-mapping:1.0";
        try {
            mappingModel = EdiConvertionTool.fromUnEdifactSpec(edifactSpecFile, urn, messages);
            mappingModelClassLoader = new ArchiveClassLoader(mappingModel);
            bindingModel = buildBindingModel(urn, messages);
            bindingModelClassLoader = new ArchiveClassLoader(mappingModelClassLoader, bindingModel);
        } catch (Exception e) {
            throw new IllegalStateException("Error loading specification '" + edifactSpecFile.getAbsolutePath() + "'.", e);
        }
    }
View Full Code Here

        testModel(archive, ediMessageFile, factoryClassName, dump, callerClass);
    }

    public static void testModel(Archive archive, String ediMessageFile, String factoryClassName, boolean dump, Class callerClass) throws IOException {

        ArchiveClassLoader classLoader = new ArchiveClassLoader(archive);
        Thread.currentThread().setContextClassLoader(classLoader);
        try {
            testModel(ediMessageFile, factoryClassName, dump);
        } finally {
            Thread.currentThread().setContextClassLoader(classLoader.getParent());
        }
    }
View Full Code Here

TOP

Related Classes of org.milyn.archive.ArchiveClassLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.