Examples of DependencyInjectorAbstract


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

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

    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

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

            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

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

    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

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

            @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

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
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.