Examples of RuntimeContextFromSession


Examples of org.apache.isis.runtimes.dflt.runtime.persistence.internal.RuntimeContextFromSession

        system = new TestProxySystem();

        objectStore = new ObjectStoreSpy();

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

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

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

        // implicitly created by the system, so reuse
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.internal.RuntimeContextFromSession

        adapterManager = new AdapterManagerDefault();
        adapterFactory = new PojoAdapterFactory();
        objectFactory = new ObjectFactoryBasic();
        oidGenerator = new TestProxyOidGenerator();

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

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

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

        persistenceSessionProxy =
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.internal.RuntimeContextFromSession

        testProxyObjectAdapter.setupOid(new TestProxyOid(nextId++));
        return testProxyObjectAdapter;
    }

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

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

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.internal.RuntimeContextFromSession

public abstract class ValueFieldTest extends FacetHolderNoop implements OneToOneAssociation {

    private final RuntimeContext runtimeContext;

    public ValueFieldTest() {
        runtimeContext = new RuntimeContextFromSession();
    }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.internal.RuntimeContextFromSession

public abstract class OneToOneAssociationTest extends FacetHolderNoop implements OneToOneAssociation {

    private final RuntimeContext runtimeContext;

    public OneToOneAssociationTest() {
        runtimeContext = new RuntimeContextFromSession();
    }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.internal.RuntimeContextFromSession

    public TestProxyPersistenceSession(final PersistenceSessionFactory persistenceSessionFactory) {
        super(persistenceSessionFactory, new AdapterFactoryTestProxyAdapter(), new TestObjectFactory(Mode.RELAXED) {
        }, new ServicesInjectorDefault(), new TestProxyOidGenerator(), new AdapterManagerDefault());

        final RuntimeContextFromSession runtimeContext = new RuntimeContextFromSession();
        final DomainObjectContainerDefault container = new DomainObjectContainerDefault();
        runtimeContext.injectInto(container);
        runtimeContext.setContainer(container);

        getServicesInjector().setContainer(container);

        setTransactionManager(transactionManager);
    }
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.persistence.internal.RuntimeContextFromSession

        final ObjectReflectorDefault reflector =
            new ObjectReflectorDefault(configuration, new TestClassSubstitutor(), new CollectionTypeRegistryDefault(),
                new SpecificationTraverserDefault(), new MemberLayoutArrangerDefault(),
                new ProgrammingModelFacetsJava5(), new HashSet<FacetDecorator>(), new MetaModelValidatorDefault());
        reflector.setRuntimeContext(new RuntimeContextFromSession());
        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 =
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.