Package org.apache.cayenne.configuration

Examples of org.apache.cayenne.configuration.ObjectContextFactory.createContext()


    public DataChannel get() throws ConfigurationException {
        ObjectContextFactory factory = serverInjector
                .getInstance(ObjectContextFactory.class);

        // TODO: ugly cast
        DataContext serverContext = (DataContext) factory.createContext();
        return new ClientServerChannel(serverContext);
    }
}
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.