Class CommonContextDecorator

    • Constructor Detail

      • CommonContextDecorator

        public CommonContextDecorator​(@Nonnull
                                      CommonContext delegate)
    • Method Detail

      • createDeserializer

        public XMLDeserializer createDeserializer()
        Description copied from interface: CommonContext
        Returns an instance of the XMLDeserializer that can be used to deserialize project resources. Note that this is the only safe way to obtain an instance of XMLDeserializer, because the context will pass the new deserializer around to all loaded modules, giving them a chance to initialize any custom deserialization deletes on it first.
        Specified by:
        createDeserializer in interface CommonContext
      • getModule

        public java.lang.Object getModule​(java.lang.String id)
        Description copied from interface: CommonContext
        Returns the hook class for another module, used for modules that deal with each other's models. Example: The reporting plugin's designer hook uses this to get FactoryPMI's palette.
        Specified by:
        getModule in interface CommonContext
      • getEdgeEditions

        public java.util.List<EdgeEdition> getEdgeEditions()
        Description copied from interface: CommonContext
        Returns a list of currently available Edge editions (either licensed or in trial). Does not check if any required modules are installed and running.
        Specified by:
        getEdgeEditions in interface CommonContext
      • getEventBus

        public com.google.common.eventbus.EventBus getEventBus()
        Description copied from interface: CommonContext
        This is a generic event bus that can be used by any part of Ignition within a single scope (jvm)
        Specified by:
        getEventBus in interface CommonContext