Package org.apache.isis.runtimes.dflt.runtime.system.session

Examples of org.apache.isis.runtimes.dflt.runtime.system.session.IsisSessionFactoryDefault


    public void init() {
        reflector.setRuntimeContext(new RuntimeContextFromSession());

        final IsisSessionFactory sessionFactory =
            new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, noopTemplateImageLoader,
                reflector, authenticationManager, authorizationManager, userProfileLoader, persistenceSessionFactory,
                servicesList);

        persistenceSession.setSpecificationLoader(reflector);
        // this implementation of persistenceSession will automatically inject
        // its own transaction manager into itself.

        sessionFactory.init();
        context = IsisContextStatic.createRelaxedInstance(sessionFactory);

        // commented out cos think now redundant since calling openExecutionContext below
        // persistor.open();
View Full Code Here


            public View createView(final Content content, final Axes axes, final int fieldNumber) {
                return new DummyView();
            }
        };

        final IsisSessionFactoryDefault sessionFactory =
            new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader,
                mockSpecificationLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader,
                mockPersistenceSessionFactory, servicesList);

        IsisContext.setConfiguration(sessionFactory.getConfiguration());
        IsisContextStatic.createRelaxedInstance(sessionFactory);
        IsisContextStatic.openSession(new ExplorationSession());

        builder = new ActionFieldBuilder(subviewSpec);
View Full Code Here

        TestToolkit.createInstance();

        final IsisConfigurationDefault configuration = new IsisConfigurationDefault();
        final IsisSessionFactory sessionFactory =
            new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader,
                mockSpecificationLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader,
                mockPersistenceSessionFactory, servicesList);
        sessionFactory.init();
        IsisContextStatic.createRelaxedInstance(sessionFactory);
    }
View Full Code Here

        reflector.init();

        // not sure if this is needed since we have now moved Reflector out to global scope,
        // not specific to an ExecutionContext.
        final IsisSessionFactory executionContextFactory =
            new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader,
                reflector, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader,
                mockPersistenceSessionFactory, servicesList);
        IsisContextStatic.createRelaxedInstance(executionContextFactory);
        IsisContextStatic.getInstance().getSessionInstance(); // cause an Execution Context to load
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.runtime.system.session.IsisSessionFactoryDefault

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.