Package org.apache.isis.core.metamodel.runtimecontext

Examples of org.apache.isis.core.metamodel.runtimecontext.DependencyInjectorAbstract


                final ObjectAdapter instances = getPersistenceSession().findInstances(query, QueryCardinality.SINGLE);
                final List<ObjectAdapter> list = CollectionFacetUtils.convertToAdapterList(instances);
                return list.size() > 0 ? list.get(0) : null;
            }
        };
        this.dependencyInjector = new DependencyInjectorAbstract() {

            @Override
            public void injectDependenciesInto(final Object object) {
                getPersistenceSession().getServicesInjector().injectDependencies(object);
            }
View Full Code Here


    private final DomainObjectServicesAbstract domainObjectServices;
    private final LocalizationProviderAbstract localizationProvider;
    private final QuerySubmitterAbstract querySubmitter;

    public RuntimeContextNoRuntime() {
        dependencyInjector = new DependencyInjectorAbstract() {

            /**
             * Unlike most of the methods in this implementation, does nothing
             * (because this will always be called, even in a no-runtime
             * context).
 
View Full Code Here

            public Localization getLocalization() {
                return context.getLocalization();
            }
        };

        this.dependencyInjector = new DependencyInjectorAbstract() {
            @Override
            public void injectDependenciesInto(final Object domainObject) {
                if (servicesInjector == null) {
                    throw new IllegalStateException("must setContainer before using this method");
                }
View Full Code Here

    private final ObjectPersistorAbstract objectPersistor;
    private final DomainObjectServicesAbstract domainObjectServices;
    private final QuerySubmitterAbstract querySubmitter;

    public RuntimeContextNoRuntime() {
        dependencyInjector = new DependencyInjectorAbstract() {

            /**
             * Unlike most of the methods in this implementation, does nothing (because this will always be called, even
             * in a no-runtime context).
             */
 
View Full Code Here

            @Override
            public void raiseError(final String message) {
                context.raiseError(message);
            }
        };
        this.dependencyInjector = new DependencyInjectorAbstract() {
            @Override
            public void injectDependenciesInto(final Object domainObject) {
                if (servicesInjector == null) {
                    throw new IllegalStateException("must setContainer before using this method");
                }
View Full Code Here

                final ObjectAdapter instances = getPersistenceSession().findInstances(query, QueryCardinality.SINGLE);
                final List<ObjectAdapter> list = CollectionFacetUtils.convertToAdapterList(instances);
                return list.size() > 0 ? list.get(0) : null;
            }
        };
        this.dependencyInjector = new DependencyInjectorAbstract() {

            @Override
            public void injectDependenciesInto(final Object object) {
                getPersistenceSession().getServicesInjector().injectDependencies(object);
            }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.runtimecontext.DependencyInjectorAbstract

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.