Package org.apache.cayenne.configuration.server

Examples of org.apache.cayenne.configuration.server.PropertyDataSourceFactory


        properties.put("x", "1");
        properties.put("x.s", "2");
        properties.put("y", "3");

        PropertyDataSourceFactory factory = new PropertyDataSourceFactory() {

            @Override
            protected String getProperty(String key) {
                return properties.get(key);
            }
        };

        assertEquals("2", factory.getProperty("x", ".s"));
        assertEquals("1", factory.getProperty("x", ".t"));
        assertEquals("3", factory.getProperty("y", ".s"));
        assertNull(factory.getProperty("z", ".u"));
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.configuration.server.PropertyDataSourceFactory

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.