Package org.switchyard.component.common.knowledge.environment

Examples of org.switchyard.component.common.knowledge.environment.SerializerObjectMarshallingStrategy


     */
    public static Environment getEnvironment(Map<String, Object> overrides) {
        Environment env = KieServices.Factory.get().newEnvironment();
        // set the object marshalling strategies
        List<ObjectMarshallingStrategy> new_oms = new ArrayList<ObjectMarshallingStrategy>();
        new_oms.add(new SerializerObjectMarshallingStrategy(SerializerFactory.create(FormatType.JSON, null, true)));
        ObjectMarshallingStrategy[] old_oms = (ObjectMarshallingStrategy[])env.get(EnvironmentName.OBJECT_MARSHALLING_STRATEGIES);
        if (old_oms != null) {
            for (int i=0; i < old_oms.length; i++) {
                if (old_oms[i] != null) {
                    new_oms.add(old_oms[i]);
View Full Code Here

TOP

Related Classes of org.switchyard.component.common.knowledge.environment.SerializerObjectMarshallingStrategy

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.