Package org.apache.maven.plugin.registry
Class PluginRegistry
- java.lang.Object
-
- org.apache.maven.plugin.registry.TrackableBase
-
- org.apache.maven.plugin.registry.PluginRegistry
-
- All Implemented Interfaces:
java.io.Serializable
public class PluginRegistry extends TrackableBase implements java.io.Serializable
Root element of the plugin registry file.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
autoUpdate
Specifies whether the user should be prompted to update plugins.private java.lang.String
checkLatest
Whether to resolve plugin versions using LATEST metadata.private java.lang.String
modelEncoding
Field modelEncoding.private java.util.List<Plugin>
plugins
Field plugins.private java.util.Map
pluginsByKey
private RuntimeInfo
runtimeInfo
private java.lang.String
updateInterval
Specifies how often to check for plugin updates.-
Fields inherited from class org.apache.maven.plugin.registry.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
-
Constructor Summary
Constructors Constructor Description PluginRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPlugin(Plugin plugin)
Method addPlugin.void
flushPluginsByKey()
java.lang.String
getAutoUpdate()
Get specifies whether the user should be prompted to update plugins.java.lang.String
getCheckLatest()
Get whether to resolve plugin versions using LATEST metadata.java.lang.String
getModelEncoding()
Get the modelEncoding field.java.util.List<Plugin>
getPlugins()
Method getPlugins.java.util.Map
getPluginsByKey()
RuntimeInfo
getRuntimeInfo()
java.lang.String
getUpdateInterval()
Get specifies how often to check for plugin updates.void
removePlugin(Plugin plugin)
Method removePlugin.void
setAutoUpdate(java.lang.String autoUpdate)
Set specifies whether the user should be prompted to update plugins.void
setCheckLatest(java.lang.String checkLatest)
Set whether to resolve plugin versions using LATEST metadata.void
setModelEncoding(java.lang.String modelEncoding)
Set the modelEncoding field.void
setPlugins(java.util.List<Plugin> plugins)
Set specified plugin update policy information.void
setRuntimeInfo(RuntimeInfo runtimeInfo)
void
setUpdateInterval(java.lang.String updateInterval)
Set specifies how often to check for plugin updates.-
Methods inherited from class org.apache.maven.plugin.registry.TrackableBase
getSourceLevel, setSourceLevel
-
-
-
-
Field Detail
-
updateInterval
private java.lang.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 java.lang.String autoUpdate
Specifies whether the user should be prompted to update plugins.
-
checkLatest
private java.lang.String checkLatest
Whether to resolve plugin versions using LATEST metadata.
-
plugins
private java.util.List<Plugin> plugins
Field plugins.
-
modelEncoding
private java.lang.String modelEncoding
Field modelEncoding.
-
pluginsByKey
private java.util.Map pluginsByKey
-
runtimeInfo
private RuntimeInfo runtimeInfo
-
-
Method Detail
-
addPlugin
public void addPlugin(Plugin plugin)
Method addPlugin.- Parameters:
plugin
- a plugin object.
-
getAutoUpdate
public java.lang.String getAutoUpdate()
Get specifies whether the user should be prompted to update plugins.- Returns:
- String
-
getCheckLatest
public java.lang.String getCheckLatest()
Get whether to resolve plugin versions using LATEST metadata.- Returns:
- String
-
getModelEncoding
public java.lang.String getModelEncoding()
Get the modelEncoding field.- Returns:
- String
-
getPlugins
public java.util.List<Plugin> getPlugins()
Method getPlugins.- Returns:
- List
-
getUpdateInterval
public java.lang.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(java.lang.String autoUpdate)
Set specifies whether the user should be prompted to update plugins.- Parameters:
autoUpdate
- a autoUpdate object.
-
setCheckLatest
public void setCheckLatest(java.lang.String checkLatest)
Set whether to resolve plugin versions using LATEST metadata.- Parameters:
checkLatest
- a checkLatest object.
-
setModelEncoding
public void setModelEncoding(java.lang.String modelEncoding)
Set the modelEncoding field.- Parameters:
modelEncoding
- a modelEncoding object.
-
setPlugins
public void setPlugins(java.util.List<Plugin> plugins)
Set specified plugin update policy information.- Parameters:
plugins
- a plugins object.
-
setUpdateInterval
public void setUpdateInterval(java.lang.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 java.util.Map getPluginsByKey()
-
flushPluginsByKey
public void flushPluginsByKey()
-
setRuntimeInfo
public void setRuntimeInfo(RuntimeInfo runtimeInfo)
-
getRuntimeInfo
public RuntimeInfo getRuntimeInfo()
-
-