Examples of resolveProperty()


Examples of org.switchyard.common.property.PropertyResolver.resolveProperty()

    public static final Object resolveProperty(QName processName, Object key) {
        PropertyResolver resolver = PROPERTY_RESOLVERS.get(processName);
        if (resolver == null) {
            return null;
        }
        return resolver.resolveProperty(key.toString());
    }
}
View Full Code Here

Examples of org.switchyard.common.property.PropertyResolver.resolveProperty()

                    def_val = prop_key.substring(sc_pos + 1, prop_key.length());
                } else {
                    real_key = prop_key;
                    def_val = null;
                }
                Object obj_val = resolver.resolveProperty(real_key);
                if (obj_val == null) {
                    obj_val = def_val;
                }
                String str_val;
                if (obj_val != null) {
View Full Code Here

Examples of org.switchyard.common.property.PropertyResolver.resolveProperty()

    public void testPropertyModel() throws Exception {
        CompositeModel composite = _puller.pull(COMPLETE_XML, getClass());
        // Test composite property
        assertEquals(2, composite.getProperties().size());
        PropertyResolver compositePr = composite.getModelConfiguration().getPropertyResolver();
        assertEquals("composite.bar", compositePr.resolveProperty("composite.foo"));
        assertEquals("composite." + System.getProperty("user.name"), composite.resolveProperty("composite.userName"));
        // Test component property
        ComponentModel component = composite.getComponents().get(0);
        assertEquals(3, component.getProperties().size());
        PropertyResolver componentPr = component.getModelConfiguration().getPropertyResolver();
View Full Code Here

Examples of org.switchyard.common.property.PropertyResolver.resolveProperty()

        assertEquals("composite." + System.getProperty("user.name"), composite.resolveProperty("composite.userName"));
        // Test component property
        ComponentModel component = composite.getComponents().get(0);
        assertEquals(3, component.getProperties().size());
        PropertyResolver componentPr = component.getModelConfiguration().getPropertyResolver();
        assertEquals("composite.bar", componentPr.resolveProperty("composite.foo"));
        assertEquals("component.bar", componentPr.resolveProperty("component.foo"));
        assertEquals("component." + System.getProperty("user.name"), componentPr.resolveProperty("component.userName"));
    }
   
    @Test
View Full Code Here

Examples of org.switchyard.common.property.PropertyResolver.resolveProperty()

        // Test component property
        ComponentModel component = composite.getComponents().get(0);
        assertEquals(3, component.getProperties().size());
        PropertyResolver componentPr = component.getModelConfiguration().getPropertyResolver();
        assertEquals("composite.bar", componentPr.resolveProperty("composite.foo"));
        assertEquals("component.bar", componentPr.resolveProperty("component.foo"));
        assertEquals("component." + System.getProperty("user.name"), componentPr.resolveProperty("component.userName"));
    }
   
    @Test
    public void testWriteComplete() throws Exception {
View Full Code Here

Examples of org.switchyard.common.property.PropertyResolver.resolveProperty()

        ComponentModel component = composite.getComponents().get(0);
        assertEquals(3, component.getProperties().size());
        PropertyResolver componentPr = component.getModelConfiguration().getPropertyResolver();
        assertEquals("composite.bar", componentPr.resolveProperty("composite.foo"));
        assertEquals("component.bar", componentPr.resolveProperty("component.foo"));
        assertEquals("component." + System.getProperty("user.name"), componentPr.resolveProperty("component.userName"));
    }
   
    @Test
    public void testWriteComplete() throws Exception {
        String old_xml = new StringPuller().pull(COMPLETE_XML, getClass());
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.