Improvement to Consumes Deserialization

Related: #713 and #657
Dependent is the right scope, I think.
On Jul 30, 2014 9:48 AM, "Rodrigo Turini" <notifications@github.com> wrote:

> In
> vraptor-core/src/main/java/br/com/caelum/vraptor/serialization/gson/GsonDeserialization.java:
>
> > @@ -97,11 +102,20 @@ public GsonDeserialization(GsonDeserializerBuilder builder, ParameterNameProvide
> >  				if (jsonElement.isJsonObject()) {
> >  					JsonObject root = jsonElement.getAsJsonObject();
> >  		
> > +					deserializee.setWithoutRoot(isWithoutRoot(parameterNames, root));
> > +					
> > +					Class<? extends DeserializerConfig>[] options = method.getMethod().getAnnotation(Consumes.class).options();
> > +					
> > +					for(int i = 0; i < options.length; i++) {
> > +						Object objectConfig = Class.forName(options[i].getName()).newInstance();
> > +						new Mirror().on(objectConfig).invoke().method("config").withArgs(deserializee);
>
> @Dependent would be the better option, but wait for other opinions before
> change it.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/caelum/vraptor4/pull/717/files#r15580704>.
>