< prev index next >

src/jdk.jlink/share/classes/jdk/tools/jlink/plugin/Plugin.java

Print this page




 184     public default String getArgumentsDescription() {
 185         return "";
 186     }
 187 
 188     /**
 189      * Return a message indicating the status of the provider.
 190      *
 191      * @return A status description.
 192      */
 193     public default String getStateDescription() {
 194         return getState().contains(STATE.FUNCTIONAL)
 195                 ? PluginsResourceBundle.getMessage("main.status.ok")
 196                 : PluginsResourceBundle.getMessage("main.status.not.ok");
 197     }
 198 
 199     /**
 200      * Configure the plugin based on the passed configuration.
 201      * This method is called prior to invoke the plugin.
 202      *
 203      * @param config The plugin configuration.


 204      */
 205     public default void configure(Map<String, String> config) {
 206     }
 207 
 208     /**
 209      * Configure the plugin based on the passed configuration.
 210      * This method is called prior to invoke the plugin.
 211      *
 212      * @param config The plugin configuration.
 213      * @param ctx The plugin context



 214      */
 215     public default void configure(Map<String, String> config, PluginContext ctx) {
 216         configure(config);
 217     }
 218 }


 184     public default String getArgumentsDescription() {
 185         return "";
 186     }
 187 
 188     /**
 189      * Return a message indicating the status of the provider.
 190      *
 191      * @return A status description.
 192      */
 193     public default String getStateDescription() {
 194         return getState().contains(STATE.FUNCTIONAL)
 195                 ? PluginsResourceBundle.getMessage("main.status.ok")
 196                 : PluginsResourceBundle.getMessage("main.status.not.ok");
 197     }
 198 
 199     /**
 200      * Configure the plugin based on the passed configuration.
 201      * This method is called prior to invoke the plugin.
 202      *
 203      * @param config The plugin configuration.
 204      * @throws IllegalArgumentException if a mandatory argument is missing or
 205      * if an argument has invalid value.
 206      */
 207     public default void configure(Map<String, String> config) {
 208     }
 209 
 210     /**
 211      * Configure the plugin based on the passed configuration.
 212      * This method is called prior to invoke the plugin.
 213      *
 214      * @param config The plugin configuration.
 215      * @param ctx The plugin context
 216      * @throws IllegalArgumentException if a mandatory argument is missing or
 217      * if an argument has invalid value.
 218      *
 219      */
 220     public default void configure(Map<String, String> config, PluginContext ctx) {
 221         configure(config);
 222     }
 223 }
< prev index next >