Package org.apache.tuscany.container.javascript.rhino

Examples of org.apache.tuscany.container.javascript.rhino.RhinoSCAConfig


                                                          DeploymentContext deploymentContext) throws
                                                                                               MissingResourceException,
                                                                                               InvalidServiceContractException {

        RhinoScript rhinoScript = implementation.getRhinoScript();
        RhinoSCAConfig scaConfig = rhinoScript.getSCAConfig();
        if (!scaConfig.hasSCAConfig()) {
            throw new IllegalArgumentException(
                "must use either .componentType side file or JS SCA varriable definition");
        }

        // FIXME this should be a system service, not instantiated here
View Full Code Here


    public void testJavaInterface() throws MissingResourceException, InvalidServiceContractException {
        RhinoScript rs =
            new RhinoScript("javaInterfaceTest", "SCA = { javaInterface : 'helloworld.HelloWorldService',};",
                null, getClass().getClassLoader());
        RhinoSCAConfig scaConfig = new RhinoSCAConfig(rs.getScriptScope());
        JavaScriptIntrospector introspector =
            new JavaScriptIntrospector(null, new JavaInterfaceProcessorRegistryImpl());
        ComponentType comonentType = introspector.introspectScript(scaConfig, rs.getClassLoader());
        assertNotNull(comonentType);
        Map services = comonentType.getServices();
View Full Code Here

    public void testWSDLPortType() throws WSDLException, IOException, MissingResourceException,
                                          InvalidServiceContractException {
        RhinoScript rs = new RhinoScript("wsdlPortType",
            "SCA = { wsdlPortType : 'HelloWorld', wsdlNamespace : 'http://helloworld',};", null,
            getClass().getClassLoader());
        RhinoSCAConfig scaConfig = new RhinoSCAConfig(rs.getScriptScope());

        WSDLDefinitionRegistryImpl wsdlReg = new WSDLDefinitionRegistryImpl();
        wsdlReg.setSchemaRegistry(new XMLSchemaRegistryImpl());
        wsdlReg.setMonitor(NULL_MONITOR);
        URL wsdlURL =
View Full Code Here

TOP

Related Classes of org.apache.tuscany.container.javascript.rhino.RhinoSCAConfig

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.