Package org.springframework.sca

Examples of org.springframework.sca.ScaServiceExporter


            if (nSuffix == -1) {
                continue;
            }

            String serviceName = serviceBeanName.substring(0, nSuffix);
            ScaServiceExporter serviceBean = (ScaServiceExporter) ctx.getBean(serviceName);
            // REVIEW andyp -- use the class directly?
            String serviceTypeName = serviceBean.getServiceType().getName();
            try {
                Class serviceInterface = Class.forName(serviceTypeName, true, deploymentContext.getClassLoader());
                componentType.addServiceType(serviceName, serviceInterface);
                //ServiceDefinition service = createService(serviceInterface);
                //componentType.getServices().put(serviceName, service);
View Full Code Here


            new ScaApplicationContext(null,
                new ClassPathResource("org/apache/tuscany/container/spring/SpringConfigSchemaTest.xml"), null);
    }

    public void testSCAService() {
        ScaServiceExporter service = (ScaServiceExporter) applicationContext.getBean("fooService");
        // FIXME andyp -- this is not really right.
//        TestBean service = (TestBean) applicationContext.getBean("fooService");
//        assertEquals("call me", service.echo("call me"));
    }
View Full Code Here

TOP

Related Classes of org.springframework.sca.ScaServiceExporter

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.