Package org.springbyexample.mvc.bind.annotation

Examples of org.springbyexample.mvc.bind.annotation.RestResource.service()


    public Object getBean() throws BeansException {
        logger.info("########## {} ######", marshallingServiceClass);

        if (bean == null) {
            RestResource restResource = AnnotationUtils.findAnnotation(marshallingServiceClass, RestResource.class);
            Class<?> serviceClass = restResource.service();

            Map<Method, ClientRequestHandlerInfo> methodRequestHandlers = new HashMap<Method, ClientRequestHandlerInfo>();

            Set<Method> methods = HandlerMethodSelector.selectMethods(marshallingServiceClass, new MethodFilter() {
                @Override
View Full Code Here


     */
    private void registerHandler(Class<?> marshallingServiceClass, Method method) {
        ApplicationContext ctx = getApplicationContext();

        RestResource restResource = AnnotationUtils.findAnnotation(marshallingServiceClass, RestResource.class);
        Class<?> serviceClass = restResource.service();

        RestRequestResource restRequestResource = AnnotationUtils.findAnnotation(method, RestRequestResource.class);
        boolean export = (restRequestResource != null ? restRequestResource.export() : true);
        boolean relative = (restRequestResource != null ? restRequestResource.relative() : true);

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.