Package org.apache.isis.core.runtime.persistence.internal

Examples of org.apache.isis.core.runtime.persistence.internal.RuntimeContextFromSession


                allowing(mockAuthenticationSession).getMessageBroker();
                will(returnValue(mockMessageBroker));
            }
        });

        final RuntimeContextFromSession runtimeContext = new RuntimeContextFromSession();
        final DomainObjectContainerDefault container = new DomainObjectContainerDefault();

        runtimeContext.injectInto(container);
        runtimeContext.setContainer(container);

        servicesInjector = new ServicesInjectorDefault();
        servicesInjector.setContainer(container);

        adapterManager = new AdapterManagerDefault(new PojoRecreatorDefault());
View Full Code Here


        final DomainObjectContainer container = obtainContainer();
        final List<Object> services = obtainServices();

        // bind metamodel to the (runtime) framework
        final RuntimeContextFromSession runtimeContext = obtainRuntimeContextFromSession();
        runtimeContext.injectInto(reflector);

        return newIsisSessionFactory(deploymentType, userProfileLoader, persistenceSessionFactory, configuration, authenticationManager, authorizationManager, templateImageLoader, oidMarshaller, reflector, container, services);
    }
View Full Code Here

        return newIsisSessionFactory(deploymentType, userProfileLoader, persistenceSessionFactory, configuration, authenticationManager, authorizationManager, templateImageLoader, oidMarshaller, reflector, container, services);
    }

    protected RuntimeContextFromSession obtainRuntimeContextFromSession() {
        return new RuntimeContextFromSession();
    }
View Full Code Here

    /**
     * Returns a {@link RuntimeContext}, with all application-specific properties
     * from the provided {@link IsisConfiguration} copied over.
     */
    public final RuntimeContext createRuntimeContext(final IsisConfiguration configuration) {
        final RuntimeContextFromSession runtimeContext = new RuntimeContextFromSession();
        final Properties properties = applicationPropertiesFrom(configuration);
        runtimeContext.setProperties(properties);
        return runtimeContext;
    }
View Full Code Here

        final DomainObjectContainer container = obtainContainer();
        final List<Object> services = obtainServices();

        // bind metamodel to the (runtime) framework
        RuntimeContextFromSession runtimeContext = new RuntimeContextFromSession();
        runtimeContext.injectInto(reflector);

        return new IsisSessionFactoryDefault(deploymentType, configuration, reflector, templateImageLoader, authenticationManager, authorizationManager, userProfileLoader, persistenceSessionFactory, container, services, oidMarshaller);
    }
View Full Code Here

                allowing(mockAuthenticationSession).getMessageBroker();
                will(returnValue(mockMessageBroker));
            }
        });

        final RuntimeContextFromSession runtimeContext = new RuntimeContextFromSession();
        final DomainObjectContainerDefault container = new DomainObjectContainerDefault();

        runtimeContext.injectInto(container);
        runtimeContext.setContainer(container);

        servicesInjector = new ServicesInjectorDefault();
        servicesInjector.setContainer(container);

        adapterManager = new AdapterManagerDefault(new PojoRecreatorDefault());
View Full Code Here

    /**
     * Returns a {@link RuntimeContext}, with all application-specific properties
     * from the provided {@link IsisConfiguration} copied over.
     */
    public final RuntimeContext createRuntimeContext(final IsisConfiguration configuration) {
        final RuntimeContextFromSession runtimeContext = new RuntimeContextFromSession();
        final Properties properties = applicationPropertiesFrom(configuration);
        runtimeContext.setProperties(properties);
        return runtimeContext;
    }
View Full Code Here

                allowing(mockAuthenticationSession).getMessageBroker();
                will(returnValue(mockMessageBroker));
            }
        });

        final RuntimeContextFromSession runtimeContext = new RuntimeContextFromSession();
        final DomainObjectContainerDefault container = new DomainObjectContainerDefault();

        runtimeContext.injectInto(container);

        servicesInjector = new ServicesInjectorDefault(new InjectorMethodEvaluatorDefault());

        adapterManager = new AdapterManagerDefault(new PojoRecreatorUnified(mockConfiguration));
        adapterFactory = new PojoAdapterFactory();
View Full Code Here

        final SpecificationLoaderSpi reflector = obtainSpecificationLoaderSpi(deploymentType, metaModelRefiners);

        final List<Object> services = obtainServices();

        // bind metamodel to the (runtime) framework
        final RuntimeContextFromSession runtimeContext = obtainRuntimeContextFromSession();
        runtimeContext.injectInto(reflector);

        return newIsisSessionFactory(
                deploymentType,
                persistenceSessionFactory,
                configuration,
View Full Code Here

                reflector,
                services);
    }

    protected RuntimeContextFromSession obtainRuntimeContextFromSession() {
        return new RuntimeContextFromSession();
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.runtime.persistence.internal.RuntimeContextFromSession

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.