Class JsonCustomFactory

  • All Implemented Interfaces:
    org.infinispan.commons.configuration.Json.Factory

    public class JsonCustomFactory
    extends org.infinispan.commons.configuration.Json.DefaultFactory
    Custom Json.Factory to handle cache attribute values.
    Since:
    10.0
    • 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.
      • Methods inherited from class org.infinispan.commons.configuration.Json.DefaultFactory

        array, bool, nil, number, object, string
    • Constructor Detail

      • JsonCustomFactory

        public JsonCustomFactory()
    • 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 a Json instance.
        Specified by:
        make in interface org.infinispan.commons.configuration.Json.Factory
        Overrides:
        make in class org.infinispan.commons.configuration.Json.DefaultFactory
        Parameters:
        anything - An arbitray Java object from which to construct a Json element.
        Returns:
        The newly constructed Json instance.