Package org.apache.tuscany.container.rhino.assembly

Examples of org.apache.tuscany.container.rhino.assembly.JavaScriptImplementation


    public JavaScriptImplementation load(XMLStreamReader reader, LoaderContext loaderContext) throws XMLStreamException, ConfigurationLoadException {
        String scriptFile = reader.getAttributeValue(null, "scriptFile");
        String script = loadScript(scriptFile, loaderContext.getResourceLoader());
        ComponentType componentType = loadComponentType(scriptFile, loaderContext);

        JavaScriptImplementation jsImpl = new JavaScriptImplementation();
        jsImpl.setComponentType(componentType);
        jsImpl.setScriptFile(scriptFile);
        jsImpl.setScript(script);
        jsImpl.setResourceLoader(loaderContext.getResourceLoader());
        jsImpl.setTypeHelper(registry.getContext().getTypeHelper());
        return jsImpl;
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.container.rhino.assembly.JavaScriptImplementation

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.