org.apache.tapestry5.json.services
Class JSONModule

java.lang.Object
  extended by org.apache.tapestry5.json.services.JSONModule

public class JSONModule
extends Object

A module that integrates JSON into Tapestry in terms of type coercions. tapestry-json can still be used independently of the rest of Tapestry (since its a 'provided' dependency), but when used with tapestry-ioc on the classpath, the coercions described by this module become available.

Since:
5.3

Constructor Summary
JSONModule()
           
 
Method Summary
static void provideCoercions(Configuration<CoercionTuple> configuration)
           String to JSONObject String to JSONArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONModule

public JSONModule()
Method Detail

provideCoercions

@Contribute(value=TypeCoercer.class)
public static void provideCoercions(Configuration<CoercionTuple> configuration)



Copyright © 2003-2012 The Apache Software Foundation.