Package org.apache.sling.models.annotations.injectorspecific

Examples of org.apache.sling.models.annotations.injectorspecific.ResourcePath


        String resourcePath = null;
        Path pathAnnotation = element.getAnnotation(Path.class);
        if (pathAnnotation != null) {
            resourcePath = pathAnnotation.value();
        } else {
            ResourcePath resourcePathAnnotation = element.getAnnotation(ResourcePath.class);
            if (resourcePathAnnotation != null) {
                resourcePath = resourcePathAnnotation.path();
                if (resourcePath.isEmpty()) {
                    resourcePath = null;
                }
            }
View Full Code Here


    }

    @Override
    public InjectAnnotationProcessor createAnnotationProcessor(Object adaptable, AnnotatedElement element) {
        // check if the element has the expected annotation
        ResourcePath annotation = element.getAnnotation(ResourcePath.class);
        if (annotation != null) {
            return new ResourcePathAnnotationProcessor(annotation, adaptable);
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.models.annotations.injectorspecific.ResourcePath

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.