Package org.apache.isis.core.metamodel.specloader

Examples of org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault


        // the programming model is itself also a MetaModelValidatorRefiner
        if(!metaModelRefiners.contains(programmingModel)) {
            programmingModel.refineMetaModelValidator(metaModelValidator, configuration);
        }
       
        return new ObjectReflectorDefault(configuration, classSubstitutor, collectionTypeRegistry, specificationTraverser, programmingModel, facetDecorators, metaModelValidator);
    }
View Full Code Here


                ignoring(mockConfiguration);
            }
        });

        runtimeContext = new RuntimeContextNoRuntime();
        final ObjectReflectorDefault reflector =
                new ObjectReflectorDefault(
                        mockConfiguration,
                        new ClassSubstitutorAbstract() {},
                        new CollectionTypeRegistryDefault(),
                        new SpecificationTraverserDefault(),
                        new ProgrammingModelFacetsJava5(),
                        new HashSet<FacetDecorator>(),
                        new MetaModelValidatorDefault());
        reflector.setRuntimeContext(runtimeContext);
        reflector.setContainer(new DomainObjectContainerDefault());
        reflector.setServices(Collections.emptyList());
        reflector.init();
       
        specification = loadSpecification(reflector);
    }
View Full Code Here

    // ///////////////////////////////////////////////////////

    @Override
    public void init() {
        ensureNotInitialized();
        reflector = new ObjectReflectorDefault(configuration, classSubstitutor, collectionTypeRegistry, specificationTraverser, programmingModel, facetDecorators, metaModelValidator);

        reflector.setContainer(container);
        reflector.setServices(services);
       
        runtimeContext.injectInto(container);
View Full Code Here

    // ///////////////////////////////////////////////////////

    @Override
    public void init() {
        ensureNotInitialized();
        reflector = new ObjectReflectorDefault(configuration, programmingModel, facetDecorators, metaModelValidator);

        reflector.setServices(services);
       
        runtimeContext.injectInto(reflector);
        reflector.injectInto(runtimeContext);
View Full Code Here

        // the programming model is itself also a MetaModelValidatorRefiner
        if(!metaModelRefiners.contains(programmingModel)) {
            programmingModel.refineMetaModelValidator(metaModelValidator, configuration);
        }
       
        return new ObjectReflectorDefault(configuration, programmingModel, facetDecorators, metaModelValidator);
    }
View Full Code Here

            public ObjectAdapter adapterFor(final Object pattern) {
                return adapters.get(pattern);
            }
        };

        reflector = new ObjectReflectorDefault(configuration, new TestClassSubstitutor(), new CollectionTypeRegistryDefault(), new SpecificationTraverserDefault(), new MemberLayoutArrangerDefault(), new ProgrammingModelFacetsJava5(), new HashSet<FacetDecorator>(), new MetaModelValidatorDefault());
        reflector.setRuntimeContext(new RuntimeContextNoRuntime() {

            @Override
            public AdapterMap getAdapterMap() {
                return adapterMap;
View Full Code Here

        final MemberLayoutArranger memberLayoutArranger = createMemberLayoutArranger(getConfiguration());
        final ProgrammingModel programmingModel = createProgrammingModelFacets(getConfiguration());
        final Set<FacetDecorator> facetDecorators = createFacetDecorators(getConfiguration());
        final MetaModelValidator metaModelValidator = createMetaModelValidator(getConfiguration());

        final ObjectReflectorDefault reflector = doCreateReflector(getConfiguration(), classSubstitutor, collectionTypeRegistry, specificationTraverser, memberLayoutArranger, programmingModel, facetDecorators, metaModelValidator);

        return reflector;
    }
View Full Code Here

     * Hook method to allow for other implementations (still based on
     * {@link ObjectReflectorDefault}).
     */
    protected ObjectReflectorDefault doCreateReflector(final IsisConfiguration configuration, final ClassSubstitutor classSubstitutor, final CollectionTypeRegistry collectionTypeRegistry, final SpecificationTraverser specificationTraverser, final MemberLayoutArranger memberLayoutArranger,
            final ProgrammingModel programmingModel, final Set<FacetDecorator> facetDecorators, final MetaModelValidator metaModelValidator) {
        return new ObjectReflectorDefault(configuration, classSubstitutor, collectionTypeRegistry, specificationTraverser, memberLayoutArranger, programmingModel, facetDecorators, metaModelValidator);
    }
View Full Code Here

                ignoring(mockAuthenticationManager);
                ignoring(mockAuthorizationManager);
            }
        });

        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 = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader, reflector, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader, mockPersistenceSessionFactory, servicesList);
View Full Code Here

    // ///////////////////////////////////////////////////////

    @Override
    public void init() {
        ensureNotInitialized();
        reflector = new ObjectReflectorDefault(configuration, classSubstitutor, collectionTypeRegistry, specificationTraverser, memberLayoutArranger, programmingModel, facetDecorators, metaModelValidator);

        runtimeContext = new RuntimeContextForEmbeddedMetaModel(context, services);
        this.container = new DomainObjectContainerDefault();

        runtimeContext.injectInto(container);
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault

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.