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

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


                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
View Full Code Here


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

        services = createServices(serviceTypes);
        runtimeContext = new RuntimeContextForEmbeddedMetaModel(context, services);
        final DomainObjectContainerDefault container = new DomainObjectContainerWrapperFactory();
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

    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

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

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

        runtimeContext.injectInto(container);
        runtimeContext.setContainer(container);
        runtimeContext.injectInto(reflector);
        reflector.injectInto(runtimeContext);
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.init();
       
        specification = loadSpecification(reflector);
    }
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,
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.