Examples of NamedFacetViaMethod


Examples of org.apache.isis.core.progmodel.facets.members.named.staticmethod.NamedFacetViaMethod

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(NamedFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof NamedFacetViaMethod);
        final NamedFacetViaMethod namedFacet = (NamedFacetViaMethod) facet;
        assertEquals("Given name", namedFacet.value());

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(nameMethod));
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.named.staticmethod.NamedFacetViaMethod

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, null, null, collectionAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(NamedFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof NamedFacetViaMethod);
        final NamedFacetViaMethod namedFacet = (NamedFacetViaMethod) facet;
        assertEquals("Most Recent Orders", namedFacet.value());

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(nameMethod));
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.named.staticmethod.NamedFacetViaMethod

        }
        try {
            final String[] names = invokeNamesMethod(namesMethod, parameters.size());
            for (int i = 0; i < names.length; i++) {
                // add facets directly to parameters, not to actions
                FacetUtil.addFacet(new NamedFacetViaMethod(names[i], namesMethod, parameters.get(i)));
            }
        } finally {
            processMethodContext.removeMethod(namesMethod);
        }
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.named.staticmethod.NamedFacetViaMethod

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, collectionAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(NamedFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof NamedFacetViaMethod);
        final NamedFacetViaMethod namedFacet = (NamedFacetViaMethod) facet;
        assertEquals("Most Recent Orders", namedFacet.value());

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(nameMethod));
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.named.staticmethod.NamedFacetViaMethod

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(NamedFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof NamedFacetViaMethod);
        final NamedFacetViaMethod namedFacet = (NamedFacetViaMethod) facet;
        assertEquals("Given name", namedFacet.value());

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(nameMethod));
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.named.staticmethod.NamedFacetViaMethod

        }
        try {
            final String[] names = invokeNamesMethod(namesMethod, parameters.size());
            for (int i = 0; i < names.length; i++) {
                // add facets directly to parameters, not to actions
                FacetUtil.addFacet(new NamedFacetViaMethod(names[i], namesMethod, parameters.get(i)));
            }
        } finally {
            processMethodContext.removeMethod(namesMethod);
        }
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.named.staticmethod.NamedFacetViaMethod

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, propertyAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(NamedFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof NamedFacetViaMethod);
        final NamedFacetViaMethod namedFacet = (NamedFacetViaMethod) facet;
        assertEquals("Given name", namedFacet.value());

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(nameMethod));
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.named.staticmethod.NamedFacetViaMethod

        facetFactory.process(new ProcessMethodContext(CustomerStatic.class, collectionAccessorMethod, methodRemover, facetedMethod));

        final Facet facet = facetedMethod.getFacet(NamedFacet.class);
        assertNotNull(facet);
        assertTrue(facet instanceof NamedFacetViaMethod);
        final NamedFacetViaMethod namedFacet = (NamedFacetViaMethod) facet;
        assertEquals("Most Recent Orders", namedFacet.value());

        assertTrue(methodRemover.getRemovedMethodMethodCalls().contains(nameMethod));
    }
View Full Code Here

Examples of org.apache.isis.core.progmodel.facets.members.named.staticmethod.NamedFacetViaMethod

        }
        try {
            final String[] names = invokeNamesMethod(namesMethod, parameters.size());
            for (int i = 0; i < names.length; i++) {
                // add facets directly to parameters, not to actions
                FacetUtil.addFacet(new NamedFacetViaMethod(names[i], namesMethod, parameters.get(i)));
            }
        } finally {
            processMethodContext.removeMethod(namesMethod);
        }
    }
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.