Skip to content

Commit

Permalink
Merge pull request #161 from caelum/ot-optional-serialization
Browse files Browse the repository at this point in the history
XStream and Gson will scanned only if present
  • Loading branch information
garcia-jj committed Oct 3, 2013
2 parents 158c83e + d63ee84 commit a2dd51e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion vraptor-core/src/main/resources/META-INF/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@
<exclude name="br.com.caelum.vraptor.interceptor.multipart.NullMultipartInterceptor">
<if-class-available name="javax.servlet.http.Part"/>
</exclude>

<exclude name="br.com.caelum.vraptor.serialization.xstream.*">
<if-class-not-available name="com.thoughtworks.xstream.XStream"/>
</exclude>

<exclude name="br.com.caelum.vraptor.deserialization.xstream.*">
<if-class-not-available name="com.thoughtworks.xstream.XStream"/>
</exclude>

<exclude name="br.com.caelum.vraptor.serialization.gson.*">
<if-class-not-available name="com.google.gson.Gson"/>
</exclude>

<exclude name="br.com.caelum.vraptor.deserialization.gson.*">
<if-class-not-available name="com.google.gson.Gson"/>
</exclude>
</scan>

</beans>
</beans>

0 comments on commit a2dd51e

Please sign in to comment.