Examples of IsisSessionFactoryDefault


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

            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

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

                ignoring(mockTransaction);
            }
        });

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

        IsisContext.openSession(new ExplorationSession());

        notifier = new ExposedViewUpdateNotifier();
View Full Code Here

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

                ignoring(mockAuthenticationManager);
                ignoring(mockAuthorizationManager);
            }
        });

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

        final TextBlockTarget target = new TextBlockTargetExample();

        content = new TextContent(target, 4, TextContent.WRAPPING);
View Full Code Here

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

        });

        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

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

        final PersistenceSessionFactory mockPersistenceSessionFactory =
            persistenceMechanismInstaller.createPersistenceSessionFactory(DeploymentType.PROTOTYPE);

        // mockPersistenceSessionFactory.init();

        final IsisSessionFactoryDefault sessionFactory =
            new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader,
                mockSpecificationLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader,
                mockPersistenceSessionFactory, servicesList);
        final IsisContext context = IsisContextStatic.createRelaxedInstance(sessionFactory);
        IsisContext.setConfiguration(sessionFactory.getConfiguration());
        sessionFactory.init();

        context.openSessionInstance(new SimpleSession("tester", new String[0], "001"));
    }
View Full Code Here

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

        // bind metamodel to the (runtime) framework
        // REVIEW: misplaced? seems like a side-effect...
        reflector.setRuntimeContext(new RuntimeContextFromSession());

        return new IsisSessionFactoryDefault(deploymentType, configuration, templateImageLoader, reflector,
            authenticationManager, authorizationManager, userProfileLoader, persistenceSessionFactory, servicesList);

    }
View Full Code Here

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

        persistenceMechanismInstaller.setConfiguration(configuration);
        final PersistenceSessionFactory persistenceSessionFactory =
            persistenceMechanismInstaller.createPersistenceSessionFactory(DeploymentType.PROTOTYPE);

        sessionFactory =
            new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader,
                mockSpecificationLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader,
                persistenceSessionFactory, servicesList);
        final IsisContext context = IsisContextStatic.createRelaxedInstance(sessionFactory);
        IsisContext.setConfiguration(sessionFactory.getConfiguration());
        sessionFactory.init();
View Full Code Here

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

        final Mockery mockery = new JUnit4Mockery();
        final ArrayList<Object> servicesList = new ArrayList<Object>();
        service = new TestServiceObject1();
        servicesList.add(service);
        final IsisSessionFactory executionContextFactory =
            new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, new IsisConfigurationDefault(),
                mockery.mock(TemplateImageLoader.class), mockery.mock(SpecificationLoader.class),
                mockery.mock(AuthenticationManager.class), mockery.mock(AuthorizationManager.class),
                mockery.mock(UserProfileLoader.class), mockery.mock(PersistenceSessionFactory.class), servicesList);

        IsisContextStatic.createRelaxedInstance(executionContextFactory);
View Full Code Here

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

                ignoring(mockAuthorizationManager);
            }
        });

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

        final TextBlockTarget target = new TextBlockTargetExample();

        content = new TextContent(target, 4, TextContent.WRAPPING);
View Full Code Here

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

        reflector.setRuntimeContext(new RuntimeContextFromSession());

        IsisContext.setConfiguration(configuration);

        final IsisSessionFactory sessionFactory =
            new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader,
                reflector, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader,
                mockPersistenceSessionFactory, servicesList);
        IsisContextStatic.createRelaxedInstance(sessionFactory);
        sessionFactory.init();

        session = new TestProxySession();
        IsisContext.openSession(session);
    }
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.