Package org.apache.tuscany.container.ruby.rubyscript

Examples of org.apache.tuscany.container.ruby.rubyscript.RubySCAConfig


                                                          DeploymentContext deploymentContext) throws
                                                                                               MissingResourceException,
                                                                                               InvalidServiceContractException {

        RubyScript rubyScript = implementation.getRubyScript();
        RubySCAConfig scaConfig = rubyScript.getSCAConfig();
        if (!scaConfig.hasSCAConfig()) {
            throw new IllegalArgumentException(
                "must use either .componentType side file or Ruby Global variable $SCA definition");
        }

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


                                   InvalidServiceContractException {
        RubyScript rs = new RubyScript("javaInterfaceTest",
                                       "$SCA = { 'javaInterface' => 'helloworld.HelloWorldService'}",
                                       null,
                                       getClass().getClassLoader());
        RubySCAConfig scaConfig = new RubySCAConfig(rs.getRubyEngine().getGlobalVariables());
        RubyIntrospector introspector = new RubyIntrospector(null,
                                                             new JavaInterfaceProcessorRegistryImpl());
        ComponentType comonentType = introspector.introspectScript(scaConfig,
                                                                   rs.getClassLoader());
        assertNotNull(comonentType);
View Full Code Here

                                  InvalidServiceContractException {
        RubyScript rs = new RubyScript("wsdlPortType",
                                       "$SCA = { 'wsdlPortType' => 'HelloWorld', 'wsdlNamespace' => 'http://helloworld'}",
                                       null,
                                       getClass().getClassLoader());
        RubySCAConfig scaConfig = new RubySCAConfig(rs.getRubyEngine().getGlobalVariables());

        WSDLDefinitionRegistryImpl wsdlReg = new WSDLDefinitionRegistryImpl();
        wsdlReg.setMonitor(NULL_MONITOR);
        URL wsdlURL = getClass().getClassLoader()
                                .getResource("org/apache/tuscany/container/ruby/jruby/helloworld.wsdl");
View Full Code Here

TOP

Related Classes of org.apache.tuscany.container.ruby.rubyscript.RubySCAConfig

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.