Package org.objectweb.handlers.types

Examples of org.objectweb.handlers.types.AddNumbers


                //
                JAXBContext jaxbContext = JAXBContext.newInstance(AddNumbers.class);
                Object payload = msg.getPayload(jaxbContext);
               
                if (payload instanceof AddNumbers) {
                    AddNumbers req = (AddNumbers)payload;

                    // now, if the arguments are small, let's do the calculation here
                    //
                    int a = req.getArg0();
                    int b = req.getArg1();
                   
                    if (isSmall(a) && isSmall(b)) {
                        int answer = a + b;
                   
                        System.out.printf("SmallNumberHandler addNumbers(%d, %d) == %d\n", a, b, answer);
View Full Code Here

TOP

Related Classes of org.objectweb.handlers.types.AddNumbers

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.