Package es.internna.framework.annotations

Examples of es.internna.framework.annotations.UrlMappings


    private void registerController(Object bean, String beanName)
    {
        Class<?> clazz = this.getClass(bean);
        UrlMapping mapping = clazz.getAnnotation(UrlMapping.class);
        if (mapping != null) registerHandler(mapping.value(), beanName);
        UrlMappings mappings = clazz.getAnnotation(UrlMappings.class);
        if (mappings != null)
            for (UrlMapping map : mappings.value())
                registerHandler(map.value(), beanName);
    }
View Full Code Here


    public final Set<String> getUrlMappings()
    {
        Set<String> combinedMappings = new HashSet<String>(urlMappings);
        UrlMapping urlMapping = ClassUtils.getAnnotation(UrlMapping.class, this);
        if ((urlMapping != null) && (urlMapping.value() != null)) combinedMappings.add(urlMapping.value());
        UrlMappings mappings = ClassUtils.getAnnotation(UrlMappings.class, this);
        if (mappings != null)
            for (UrlMapping map : mappings.value())
                if ((map != null) && (map.value() != null)) combinedMappings.add(map.value());
        return combinedMappings;
    }
View Full Code Here

TOP

Related Classes of es.internna.framework.annotations.UrlMappings

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.