Interface WrapperService<DT,​PT extends WrapperPlugin<DT>>

    • Method Detail

      • create

        default <D extends DTPT create​(D data)
        Creates a new plugin instance wrapping the given associated data object.
        Returns:
        An appropriate plugin instance, or null if the data is not compatible with any available plugin.
      • 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
      • supports

        default boolean supports​(DT data)
        Description copied from interface: Typed
        Gets whether this object is compatible with the given data object.

        By default, this method will return true iff the data is assignable to the associated type given by Typed.getType(). But individual implementations may have other requirements beyond class assignability.

        Specified by:
        supports in interface Typed<DT>