Class JSONModule
- java.lang.Object
-
- org.apache.tapestry5.json.modules.JSONModule
-
public class JSONModule extends java.lang.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
Constructors Constructor Description JSONModule()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
provideCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
-
-
-
Constructor Detail
-
JSONModule
public JSONModule()
-
-
Method Detail
-
provideCoercions
@Contribute(TypeCoercer.class) public static void provideCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
String
toJSONObject
String
toJSONArray
- Parameters:
configuration
- the configuration to provide the type coercer to
-
-