Examples of InMemoryPersistenceMechanismInstaller


Examples of org.apache.isis.runtimes.dflt.objectstores.dflt.InMemoryPersistenceMechanismInstaller

        ((ObjectReflectorDefault) mockSpecificationLoader).setRuntimeContext(new RuntimeContextFromSession());

        if (configuration.getString(SqlObjectStore.BASE_NAME + ".jdbc.driver") == null) {
            if (configuration.getString("isis.persistor") == "in-memory") {
                persistenceMechanismInstaller = new InMemoryPersistenceMechanismInstaller();
            } else {
                persistenceMechanismInstaller = new XmlPersistenceMechanismInstaller();
            }
        } else {
            persistenceMechanismInstaller = new SqlPersistorInstaller();
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.dflt.InMemoryPersistenceMechanismInstaller

        javaReflectorInstaller.setConfiguration(configuration);
        mockSpecificationLoader = javaReflectorInstaller.createReflector();

        ((ObjectReflectorDefault) mockSpecificationLoader).setRuntimeContext(new RuntimeContextFromSession());

        final InMemoryPersistenceMechanismInstaller persistenceMechanismInstaller =
            new InMemoryPersistenceMechanismInstaller();
        persistenceMechanismInstaller.setConfiguration(configuration);
        final PersistenceSessionFactory mockPersistenceSessionFactory =
            persistenceMechanismInstaller.createPersistenceSessionFactory(DeploymentType.PROTOTYPE);

        // mockPersistenceSessionFactory.init();

        final IsisSessionFactoryDefault sessionFactory =
            new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader,
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.dflt.InMemoryPersistenceMechanismInstaller

        ((ObjectReflectorDefault) mockSpecificationLoader).setRuntimeContext(new RuntimeContextFromSession());

        if (configuration.getString(SqlObjectStore.BASE_NAME + ".jdbc.driver") == null) {
            if (configuration.getString("isis.persistor") == "in-memory") {
                persistenceMechanismInstaller = new InMemoryPersistenceMechanismInstaller();
            } else {
                persistenceMechanismInstaller = new XmlPersistenceMechanismInstaller();
            }
        } else {
            persistenceMechanismInstaller = new SqlPersistorInstaller();
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.