Package org.apache.isis.applib.annotation

Examples of org.apache.isis.applib.annotation.MemberOrder


        }
        return memberOrderFacet;
    }

    private static MemberOrderFacet createFromAnnotationIfPossible(final ProcessMethodContext processMethodContext) {
        final MemberOrder annotation = Annotations.getAnnotation(processMethodContext.getMethod(), MemberOrder.class);
        return annotation != null ? new MemberOrderFacetAnnotation(annotation.name(), annotation.sequence(), processMethodContext.getFacetHolder()) : null;
    }
View Full Code Here


        }
        return memberOrderFacet;
    }

    private static MemberOrderFacet createFromAnnotationIfPossible(final ProcessMethodContext processMethodContext) {
        final MemberOrder annotation = Annotations.getAnnotation(processMethodContext.getMethod(), MemberOrder.class);
        return annotation != null ? new MemberOrderFacetAnnotation(annotation.name(), annotation.sequence(), processMethodContext.getFacetHolder()) : null;
    }
View Full Code Here

    }

    @Override
    public void process(final ProcessMethodContext processMethodContext) {
        final Class<MemberOrder> annotationClass = MemberOrder.class;
        final MemberOrder annotation = getAnnotation(processMethodContext.getMethod(), annotationClass);
        FacetUtil.addFacet(create(annotation, processMethodContext.getFacetHolder()));
    }
View Full Code Here

    public void process(final ProcessMethodContext processMethodContext) {
       
        MemberOrderFacet memberOrderFacet = getMemberOrderFromMetadataPropertiesIfPossible(processMethodContext);

        if(memberOrderFacet == null) {
            final MemberOrder annotation = Annotations.getAnnotation(processMethodContext.getMethod(), MemberOrder.class);
            if (annotation != null) {
                memberOrderFacet = new MemberOrderFacetAnnotation(annotation.name(), annotation.sequence(), processMethodContext.getFacetHolder());
            }
        }

        // no-op if facet is null
        FacetUtil.addFacet(memberOrderFacet);
View Full Code Here

    }

    @Override
    public void process(final ProcessMethodContext processMethodContext) {
        final Class<MemberOrder> annotationClass = MemberOrder.class;
        final MemberOrder annotation = getAnnotation(processMethodContext.getMethod(), annotationClass);
        FacetUtil.addFacet(create(annotation, processMethodContext.getFacetHolder()));
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.annotation.MemberOrder

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.