Class PerspectiveModule


  • public class PerspectiveModule
    extends java.lang.Object
    Contains common configuration and const definitions for things like module ID, and also provides a registry for components.
    • Constructor Detail

      • PerspectiveModule

        public PerspectiveModule()
    • Method Detail

      • getLogger

        public static LoggerEx getLogger​(java.lang.String name)
      • createPerspectiveCompatibleGson

        @Nonnull
        public static com.inductiveautomation.ignition.common.gson.Gson createPerspectiveCompatibleGson()
        Creates a Gson instance with the correct type adapters registered to serialize and deserialize views
      • createPerspectiveCompatibleGson

        @Nonnull
        public static com.inductiveautomation.ignition.common.gson.Gson createPerspectiveCompatibleGson​(java.util.function.Consumer<com.inductiveautomation.ignition.common.gson.GsonBuilder> customize)
        Creates a Gson instance with the correct type adapters registered to serialize and deserialize views
      • defaultMetaProps

        public static com.inductiveautomation.ignition.common.gson.JsonObject defaultMetaProps()
        Returns:
        the default object parsed from the common meta-schema resource.
      • defaultViewProps

        public static com.inductiveautomation.ignition.common.gson.JsonObject defaultViewProps()
        Returns:
        the default object parsed from the common view-props-schema resource.
      • defaultSessionProps

        public static com.inductiveautomation.ignition.common.gson.JsonObject defaultSessionProps()
        Returns:
        the default object parsed from the common session-props schema resource.