All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.restup.bind.SimpleMethodArgumentFactory Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package com.github.restup.bind;

import com.github.restup.errors.Errors;
import com.github.restup.service.FilterChainContext;
import com.github.restup.util.ReflectionUtils;

/**
 * Creates a new instance of method arguments using reflection. 

Does not bind request parameters to instantiated objects. */ public class SimpleMethodArgumentFactory implements MethodArgumentFactory { @Override public T newInstance(Class clazz) { return ReflectionUtils.newInstance(clazz); } @Override public T newInstance(Class clazz, FilterChainContext ctx, Errors errors) { return newInstance(clazz); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy