Class JsonCustomFactory
- java.lang.Object
-
- org.infinispan.commons.configuration.Json.DefaultFactory
-
- org.infinispan.commons.configuration.JsonCustomFactory
-
- All Implemented Interfaces:
org.infinispan.commons.configuration.Json.Factory
public class JsonCustomFactory extends org.infinispan.commons.configuration.Json.DefaultFactory
CustomJson.Factory
to handle cache attribute values.- Since:
- 10.0
-
-
Constructor Summary
Constructors Constructor Description JsonCustomFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.configuration.Json
make(Object anything)
Construct and return a JSON object.
-
-
-
Method Detail
-
make
public org.infinispan.commons.configuration.Json make(Object anything)
Description copied from interface:org.infinispan.commons.configuration.Json.Factory
Construct and return a JSON object. The resulting value can be of any JSON type. The method is responsible for examining the type of its argument and performing an appropriate mapping to aJson
instance.- Specified by:
make
in interfaceorg.infinispan.commons.configuration.Json.Factory
- Overrides:
make
in classorg.infinispan.commons.configuration.Json.DefaultFactory
- Parameters:
anything
- An arbitray Java object from which to construct aJson
element.- Returns:
- The newly constructed
Json
instance.
-
-