Package org.apache.isis.applib.annotation

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


            final Iterable<Class<?>> classes = Iterables.filter(
                    reflections.getTypesAnnotatedWith(DomainService.class), instantiatable());
            for (final Class<?> cls : classes) {

                final DomainService domainService = cls.getAnnotation(DomainService.class);
                final String order = domainService.menuOrder();
                final String serviceName = cls.getName();

                ServicesInstallerUtils.appendInPosition(positionedServices, order, serviceName);
            }
        }
View Full Code Here


    }

    @Override
    public void process(ProcessClassContext processClassContext) {
        final Class<?> cls = processClassContext.getCls();
        final DomainService annotation = Annotations.getAnnotation(cls, DomainService.class);
        if (annotation == null) {
            return;
        }
        FacetUtil.addFacet(
                new DomainServiceFacetAnnotation(
                        processClassContext.getFacetHolder(),
                        annotation.menuOrder(), annotation.repositoryFor()));
        if(annotation.repositoryFor() != null) {
            FacetUtil.addFacet(
                    new IconFacetDerivedFromDomainServiceAnnotation(
                            processClassContext.getFacetHolder(),
                            annotation.repositoryFor()));
        }
        return;
    }
View Full Code Here

TOP

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

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.