Examples of doSayHello()


Examples of com.alibaba.dubbo.examples.annotation.action.AnnotationAction.doSayHello()

        try {
            ClassPathXmlApplicationContext consumerContext = new ClassPathXmlApplicationContext(AnnotationTest.class.getPackage().getName().replace('.', '/') + "/annotation-consumer.xml");
            consumerContext.start();
            try {
                AnnotationAction annotationAction = (AnnotationAction) consumerContext.getBean("annotationAction");
                String hello = annotationAction.doSayHello("world");
                assertEquals("annotation: hello, world", hello);
            } finally {
                consumerContext.stop();
                consumerContext.close();
            }
View Full Code Here

Examples of com.alibaba.dubbo.examples.annotation.action.AnnotationAction.doSayHello()

    public static void main(String[] args) throws Exception {
        String config = AnnotationConsumer.class.getPackage().getName().replace('.', '/') + "/annotation-consumer.xml";
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(config);
        context.start();
        final AnnotationAction annotationAction = (AnnotationAction)context.getBean("annotationAction");
        String hello = annotationAction.doSayHello("world");
        System.out.println("result :" + hello);
        System.in.read();
    }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.