Class PluginRegistry

java.lang.Object
org.apache.maven.plugin.registry.TrackableBase
org.apache.maven.plugin.registry.PluginRegistry
All Implemented Interfaces:
Serializable

public class PluginRegistry extends TrackableBase implements Serializable
Root element of the plugin registry file.
Version:
$Revision$ $Date$
See Also:
  • Field Details

    • updateInterval

      private String updateInterval
      Specifies how often to check for plugin updates. Valid values are: never, always, interval:XXX. For the interval specification, XXX denotes a terse interval specification, such as 4h. Where h=hours, m=minutes, d=days, w=weeks. The interval period should be specified in descending order of granularity, like this: '[n]w [n]d [n]h [n]m'. Any omitted level of granularity will be assumed to be a zero value.
    • autoUpdate

      private String autoUpdate
      Specifies whether the user should be prompted to update plugins.
    • checkLatest

      private String checkLatest
      Whether to resolve plugin versions using LATEST metadata.
    • plugins

      private List<Plugin> plugins
      Field plugins.
    • modelEncoding

      private String modelEncoding
      Field modelEncoding.
    • pluginsByKey

      private Map pluginsByKey
    • runtimeInfo

      private RuntimeInfo runtimeInfo
  • Constructor Details

    • PluginRegistry

      public PluginRegistry()
  • Method Details

    • addPlugin

      public void addPlugin(Plugin plugin)
      Method addPlugin.
      Parameters:
      plugin - a plugin object.
    • getAutoUpdate

      public String getAutoUpdate()
      Get specifies whether the user should be prompted to update plugins.
      Returns:
      String
    • getCheckLatest

      public String getCheckLatest()
      Get whether to resolve plugin versions using LATEST metadata.
      Returns:
      String
    • getModelEncoding

      public String getModelEncoding()
      Get the modelEncoding field.
      Returns:
      String
    • getPlugins

      public List<Plugin> getPlugins()
      Method getPlugins.
      Returns:
      List
    • getUpdateInterval

      public String getUpdateInterval()
      Get specifies how often to check for plugin updates. Valid values are: never, always, interval:XXX. For the interval specification, XXX denotes a terse interval specification, such as 4h. Where h=hours, m=minutes, d=days, w=weeks. The interval period should be specified in descending order of granularity, like this: '[n]w [n]d [n]h [n]m'. Any omitted level of granularity will be assumed to be a zero value.
      Returns:
      String
    • removePlugin

      public void removePlugin(Plugin plugin)
      Method removePlugin.
      Parameters:
      plugin - a plugin object.
    • setAutoUpdate

      public void setAutoUpdate(String autoUpdate)
      Set specifies whether the user should be prompted to update plugins.
      Parameters:
      autoUpdate - a autoUpdate object.
    • setCheckLatest

      public void setCheckLatest(String checkLatest)
      Set whether to resolve plugin versions using LATEST metadata.
      Parameters:
      checkLatest - a checkLatest object.
    • setModelEncoding

      public void setModelEncoding(String modelEncoding)
      Set the modelEncoding field.
      Parameters:
      modelEncoding - a modelEncoding object.
    • setPlugins

      public void setPlugins(List<Plugin> plugins)
      Set specified plugin update policy information.
      Parameters:
      plugins - a plugins object.
    • setUpdateInterval

      public void setUpdateInterval(String updateInterval)
      Set specifies how often to check for plugin updates. Valid values are: never, always, interval:XXX. For the interval specification, XXX denotes a terse interval specification, such as 4h. Where h=hours, m=minutes, d=days, w=weeks. The interval period should be specified in descending order of granularity, like this: '[n]w [n]d [n]h [n]m'. Any omitted level of granularity will be assumed to be a zero value.
      Parameters:
      updateInterval - a updateInterval object.
    • getPluginsByKey

      public Map getPluginsByKey()
    • flushPluginsByKey

      public void flushPluginsByKey()
    • setRuntimeInfo

      public void setRuntimeInfo(RuntimeInfo runtimeInfo)
    • getRuntimeInfo

      public RuntimeInfo getRuntimeInfo()