Interface ImportPolicy


  • @Contract
    public interface ImportPolicy
    Modules that wish to programmatically control their list of imports can implement this interface. Implementation of this interface will be called when the module is in PREPARING state.

    To define an implementation of this in a module, write a class that implements this interface and puts Service on it. Maven will take care of the rest.

    See Also:
    ManifestConstants.IMPORT_POLICY
    • Method Detail

      • prepare

        void prepare​(Module module)
        callback from the module loading system when the module enters the PREPARING phase.
        Parameters:
        module - the module instance