< prev index next >

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

Print this page




  90     }
  91 
  92     /**
  93      * The type of this plugin.
  94      *
  95      * @return The type of this plugin
  96      */
  97     public default Category getType() {
  98         return Category.TRANSFORMER;
  99     }
 100 
 101     /**
 102      * The Plugin set of states.
 103      * @return The set of states.
 104      */
 105     public default Set<State> getState() {
 106         return EnumSet.of(State.FUNCTIONAL);
 107     }
 108 
 109     /**
 110      * The set of plugin names that must be located, within the stack of plugins,
 111      * before this plugin.
 112      * @return The set of names. By default this set is empty.
 113      */
 114     public default Set<String> isBefore() {
 115         return Collections.emptySet();
 116     }
 117 
 118     /**
 119      * The set of plugin names that must be located, within the stack of plugins,
 120      * after this plugin.
 121      * @return The set of names. By default this set is empty.
 122      */
 123     public default Set<String> isAfter() {
 124         return Collections.emptySet();
 125     }
 126 
 127     /**
 128      * The plugin name.
 129      * @return The name.
 130      */
 131     public default String getName() {
 132         return getClass().getName().replace('.', '-');
 133     }
 134 
 135     /**
 136      * The plugin description.
 137      * @return  The description.
 138      */
 139     public default String getDescription() {
 140         return "";
 141     }
 142 
 143     /**
 144      * The option that identifies this plugin. This may be null.
 145      * "--" is prefixed to the String (when non-null) when invoking
 146      * this plugin from jlink command line.
 147      *




  90     }
  91 
  92     /**
  93      * The type of this plugin.
  94      *
  95      * @return The type of this plugin
  96      */
  97     public default Category getType() {
  98         return Category.TRANSFORMER;
  99     }
 100 
 101     /**
 102      * The Plugin set of states.
 103      * @return The set of states.
 104      */
 105     public default Set<State> getState() {
 106         return EnumSet.of(State.FUNCTIONAL);
 107     }
 108 
 109     /**


















 110      * The plugin name.
 111      * @return The name.
 112      */
 113     public default String getName() {
 114         return getClass().getName().replace('.', '-');
 115     }
 116 
 117     /**
 118      * The plugin description.
 119      * @return  The description.
 120      */
 121     public default String getDescription() {
 122         return "";
 123     }
 124 
 125     /**
 126      * The option that identifies this plugin. This may be null.
 127      * "--" is prefixed to the String (when non-null) when invoking
 128      * this plugin from jlink command line.
 129      *


< prev index next >