Package org.apache.isis.core.metamodel.facets.actions.executed.ExecutedFacet

Examples of org.apache.isis.core.metamodel.facets.actions.executed.ExecutedFacet.Where


     * executed, either {@link Where#LOCALLY locally} or {@link Where#REMOTELY
     * remotely}.
     */
    private void attachExecutedFacetIfActionMethodNamePrefixed(final ProcessMethodContext processMethodContext) {
        final Method actionMethod = processMethodContext.getMethod();
        final Where where = Where.lookup(actionMethod);
        if (where == null) {
            return;
        }
        final FacetHolder facetedMethod = processMethodContext.getFacetHolder();
        FacetUtil.addFacet(new ExecutedFacetViaNamingConvention(where, facetedMethod));
View Full Code Here


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

    @Override
    public Target getTarget() {
        final ExecutedFacet facet = getFacet(ExecutedFacet.class);
        final Where executeWhere = facet.value();
        if (executeWhere == Where.LOCALLY) {
            return Target.LOCAL;
        } else if (executeWhere == Where.REMOTELY) {
            return Target.REMOTE;
        } else if (executeWhere == Where.DEFAULT) {
View Full Code Here

     * Adds the {@link ExecutedFacet} (indicating where the action should be executed, either {@link Where#LOCALLY
     * locally} or {@link Where#REMOTELY remotely}.
     */
    private void attachExecutedFacetIfActionMethodNamePrefixed(final ProcessMethodContext processMethodContext) {
        final Method actionMethod = processMethodContext.getMethod();
        final Where where = Where.lookup(actionMethod);
        if (where == null) {
            return;
        }
        final FacetHolder facetedMethod = processMethodContext.getFacetHolder();
        FacetUtil.addFacet(new ExecutedFacetViaNamingConvention(where, facetedMethod));
View Full Code Here

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

    @Override
    public Target getTarget() {
        final ExecutedFacet facet = getFacet(ExecutedFacet.class);
        final Where executeWhere = facet.value();
        if (executeWhere == Where.LOCALLY) {
            return Target.LOCAL;
        } else if (executeWhere == Where.REMOTELY) {
            return Target.REMOTE;
        } else if (executeWhere == Where.DEFAULT) {
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.facets.actions.executed.ExecutedFacet.Where

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.