Package org.apache.isis.applib

Examples of org.apache.isis.applib.DomainObjectContainer


     * first ensuring that it is available.
     *
     * @throws IllegalStateException if not available
     */
    public DomainObjectContainer container() {
        final DomainObjectContainer container = dsp.getContainer();
        if(container == null) {
            throw new IllegalStateException(
                    "No DomainObjectContainer available");
        }
        return container;
View Full Code Here


    /**
     * @see #shutdownServices(ServiceInitializer)
     */
    private ServiceInitializer initializeServices() {

        final DomainObjectContainer container = sessionFactory.getContainer();
        final List<Object> services = sessionFactory.getServices();
       
        // autowire
        final ServicesInjectorDefault servicesInjector = new ServicesInjectorDefault();
        servicesInjector.setContainer(container);
View Full Code Here

        final OidMarshaller oidMarshaller = obtainOidMarshaller();
       
        final Collection<MetaModelRefiner> metaModelRefiners = refiners(authenticationManager, authorizationManager, templateImageLoader, persistenceSessionFactory);
        final SpecificationLoaderSpi reflector = obtainSpecificationLoaderSpi(deploymentType, persistenceSessionFactory, metaModelRefiners);

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

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

        final OidMarshaller oidMarshaller = obtainOidMarshaller();
       
        final Collection<MetaModelRefiner> metaModelRefiners = refiners(authenticationManager, authorizationManager, templateImageLoader, persistenceSessionFactory);
        final SpecificationLoaderSpi reflector = obtainSpecificationLoaderSpi(deploymentType, persistenceSessionFactory, metaModelRefiners);

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

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

     * first ensuring that it is available.
     *
     * @throws IllegalStateException if not available
     */
    public DomainObjectContainer container() {
        final DomainObjectContainer container = dsp.getContainer();
        if(container == null) {
            throw new IllegalStateException(
                    "No DomainObjectContainer available");
        }
        return container;
View Full Code Here

        final AuthenticationManager authenticationManager = isisSystem.getSessionFactory().getAuthenticationManager();
        authenticationSession = authenticationManager.authenticate(authenticationRequest);

        IsisContext.openSession(authenticationSession);

        DomainObjectContainer container = lookupContainer();
        if (firstTime && fixturesInitialization == Fixtures.Initialization.INIT) {
            fixtures.init(container);
        }
        if (fireListeners.shouldFire()) {
            firePostSetupSystem(firstTime);
View Full Code Here

    public void addServicesAnnotatedOn(final Class<?> javaClass) throws InstantiationException, IllegalAccessException {
        final List<Object> services = new ArrayList<Object>();
        addServicesAnnotatedOn(javaClass, services);

        final DomainObjectContainer doc = lookupContainerIn(services);
        if(doc == null) {
            services.add(new DomainObjectContainerDefault());
        }

        addServices(services);
View Full Code Here

        final ObjectAdapterFactory adapterFactory = createAdapterFactory(getConfiguration());
        final ObjectFactory objectFactory = createObjectFactory(getConfiguration());
        final OidGenerator oidGenerator = createOidGenerator(getConfiguration());

        final RuntimeContext runtimeContext = createRuntimeContext(getConfiguration());
        final DomainObjectContainer container = createContainer(getConfiguration());

        final ServicesInjector servicesInjector = createServicesInjector(getConfiguration());
        final List<Object> serviceList = persistenceSessionFactory.getServices();

        ensureThatArg(adapterManager, is(not(nullValue())));
View Full Code Here

        final ObjectAdapterFactory adapterFactory = createAdapterFactory(getConfiguration());
        final ObjectFactory objectFactory = createObjectFactory(getConfiguration());
        final OidGenerator oidGenerator = createOidGenerator(getConfiguration());

        final RuntimeContext runtimeContext = createRuntimeContext(getConfiguration());
        final DomainObjectContainer container = createContainer(getConfiguration());

        final ServicesInjector servicesInjector = createServicesInjector(getConfiguration());
        final List<Object> serviceList = persistenceSessionFactory.getServices();

        ensureThatArg(adapterManager, is(not(nullValue())));
View Full Code Here

     * first ensuring that it is available.
     *
     * @throws IllegalStateException if not available
     */
    public DomainObjectContainer container() {
        final DomainObjectContainer container = dsp.getContainer();
        if(container == null) {
            throw new IllegalStateException(
                    "No DomainObjectContainer available");
        }
        return container;
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.DomainObjectContainer

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.