Interface SingletonService<PT extends SingletonPlugin>

    • Method Detail

      • getInstances

        List<PT> getInstances()
        Gets the list of plugin instances. There will be one singleton instance for each available plugin.
      • getInstance

        <P extends PT> P getInstance​(Class<P> pluginClass)
        Gets the singleton plugin instance of the given class.
      • filterInstances

        default List<? extends PT> filterInstances​(List<PT> list)
        Filters the given list of instances by this service's inclusion criteria.
        Parameters:
        list - the initial list of instances
        Returns:
        the filtered list of instances
      • initialize

        default void initialize()
        Description copied from interface: Service
        Performs any needed initialization when the service is first loaded.

        NB: This method is not intended to be called directly. It is called by the service framework itself (specifically by the ServiceHelper) when initializing the service. It should not be called a second time.

        Specified by:
        initialize in interface Initializable
        Specified by:
        initialize in interface Service