public interface Plugin
Modifier and Type | Interface and Description |
---|---|
static class |
Plugin.CATEGORY
Order of categories:
FILTER: Filter in/out resources or files.
TRANSFORMER: Transform resources or files(eg: refactoring, bytecode
manipulation).
MODULEINFO_TRANSFORMER: Transform only module-info.class
SORTER: Sort resources within the resource container.
COMPRESSOR: Compress resource within the resouce containers.
VERIFIER: Does some image verification.
PROCESSOR: Does some post processing on image.
PACKAGER: Final processing
|
static interface |
Plugin.PluginType
Type of plugin.
|
static class |
Plugin.STATE
Plugin state:
DISABLED: The plugin is not exposed in help and will be not called.
AUTO_ENABLED: The plugin is enabled by default.
|
Modifier and Type | Method and Description |
---|---|
default void |
configure(Map<String,String> config)
Configure the plugin based on the passed configuration.
|
default void |
configure(Map<String,String> config,
PluginContext ctx)
Configure the plugin based on the passed configuration.
|
default String |
getArgumentsDescription()
The plugin argument(s) description.
|
default String |
getDescription()
The plugin description.
|
default String |
getName()
The plugin name.
|
default String |
getOption()
The option that identifies this plugin.
|
default Set<Plugin.STATE> |
getState()
The Plugin set of states.
|
default String |
getStateDescription()
Return a message indicating the status of the provider.
|
default Set<Plugin.PluginType> |
getType()
The Plugin set of types.
|
default boolean |
hasArguments()
Has this plugin require one or more arguments?
A plugin can have one or more optional arguments.
|
default Set<String> |
isAfter()
The set of plugin names that must be located, within the stack of plugins,
after this plugin.
|
default Set<String> |
isBefore()
The set of plugin names that must be located, within the stack of plugins,
before this plugin.
|
default Set<Plugin.PluginType> getType()
default Set<Plugin.STATE> getState()
default Set<String> isBefore()
default Set<String> isAfter()
default String getName()
default String getDescription()
default String getOption()
default boolean hasArguments()
--plugin-option=arg_valueIf there are more than arguments, command line option looks like:
--plugin-option=arg_value:arg2=value2:arg3=value3...
default String getArgumentsDescription()
default String getStateDescription()
default void configure(Map<String,String> config)
config
- The plugin configuration.default void configure(Map<String,String> config, PluginContext ctx)
config
- The plugin configuration.ctx
- The plugin context
Copyright © 2015, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-04-25-041322.buildd.src