Examples of loadSpecification()


Examples of org.apache.isis.core.metamodel.spec.SpecificationLoader.loadSpecification()

        final TypeOfFacet actionTypeOfFacet = objectAction.getFacet(TypeOfFacet.class);
        SpecificationLoader specificationLookup = objectMemberContext.getSpecificationLookup();
        // TODO: a bit of a hack; ought really to set up a fallback TypeOfFacetDefault which ensures that there is always
        // a TypeOfFacet for any contributee associations created from contributed actions.
        Class<? extends Object> cls = actionTypeOfFacet != null? actionTypeOfFacet.value(): Object.class;
        return specificationLookup.loadSpecification(cls);
    }
   
    public OneToManyAssociationContributee(
            final ObjectAdapter serviceAdapter,
            final ObjectActionImpl serviceAction,
View Full Code Here

Examples of org.apache.isis.core.metamodel.spec.SpecificationLoader.loadSpecification()

        final TypeOfFacet actionTypeOfFacet = objectAction.getFacet(TypeOfFacet.class);
        SpecificationLoader specificationLookup = objectMemberContext.getSpecificationLookup();
        // TODO: a bit of a hack; ought really to set up a fallback TypeOfFacetDefault which ensures that there is always
        // a TypeOfFacet for any contributee associations created from contributed actions.
        Class<? extends Object> cls = actionTypeOfFacet != null? actionTypeOfFacet.value(): Object.class;
        return specificationLookup.loadSpecification(cls);
    }
   
    public OneToManyAssociationContributee(
            final ObjectAdapter serviceAdapter,
            final ObjectActionImpl serviceAction,
View Full Code Here

Examples of org.apache.isis.core.metamodel.spec.SpecificationLoader.loadSpecification()

        final SpecificationLoader reflector = IsisContext.getSpecificationLoader();
        final JdbcPolymorphicObjectReferenceMapping idMapping = (JdbcPolymorphicObjectReferenceMapping) idMappingAbstract;

        while (rs.next()) {
            final ObjectSpecification itemSpecification = reflector.loadSpecification(rs.getString(classColumnName));
            idMapping.setObjectSpecification(itemSpecification);

            // Load new recordSet for the actual class
            final ObjectMapping itemMapper = objectMapperLookup.getMapping(itemSpecification, connector);
            final Oid oid = idMapping.recreateOid(rs, itemSpecification);
View Full Code Here

Examples of org.apache.isis.core.metamodel.spec.SpecificationLoaderSpi.loadSpecification()

        final SpecificationLoaderSpi reflector = IsisContext.getSpecificationLoader();
        final JdbcPolymorphicObjectReferenceMapping idMapping =
            (JdbcPolymorphicObjectReferenceMapping) idMappingAbstract;

        while (rs.next()) {
            final ObjectSpecification itemSpecification = reflector.loadSpecification(rs.getString(classColumnName));
            idMapping.setObjectSpecification(itemSpecification);

            // Load new recordSet for the actual class
            final ObjectMapping itemMapper = objectMappingLookup.getMapping(itemSpecification, connector);
            final TypedOid oid = idMapping.recreateOid(rs, itemSpecification);
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.nosql.TrialObjects.loadSpecification()

        final SerialOid oid = SerialOid.createTransient(1);
        final ExampleValuePojo pojo = new ExampleValuePojo();

        final ObjectAdapter adapter = testObjects.createAdapter(pojo, oid);

        final ObjectSpecification loadSpecification = testObjects.loadSpecification(ExampleValuePojo.class);

        assertEquals(loadSpecification, adapter.getSpecification());
        assertEquals(oid, adapter.getOid());
        assertEquals(pojo, adapter.getObject());
        assertEquals(ResolveState.TRANSIENT, adapter.getResolveState());
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.objectstores.nosql.TrialObjects.loadSpecification()

        final SerialOid oid = SerialOid.createTransient(1);
        final ExampleValuePojo pojo = new ExampleValuePojo();

        final ObjectAdapter adapter = testObjects.createAdapter(pojo, oid);

        final ObjectSpecification loadSpecification = testObjects.loadSpecification(ExampleValuePojo.class);

        assertEquals(loadSpecification, adapter.getSpecification());
        assertEquals(oid, adapter.getOid());
        assertEquals(pojo, adapter.getObject());
        assertEquals(ResolveState.TRANSIENT, adapter.getResolveState());
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.