org.apache.maven.plugin.registry
Class PluginRegistry

java.lang.Object
  extended by org.apache.maven.plugin.registry.TrackableBase
      extended by 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 inherited from class org.apache.maven.plugin.registry.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
 
Constructor Summary
PluginRegistry()
           
 
Method Summary
 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()
           
 java.util.List 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)
           
 void setPlugins(java.util.List 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginRegistry

public PluginRegistry()
Method Detail

addPlugin

public void addPlugin(Plugin plugin)
Method addPlugin

Parameters:
plugin -

getAutoUpdate

public java.lang.String getAutoUpdate()
Get Specifies whether the user should be prompted to update plugins.


getCheckLatest

public java.lang.String getCheckLatest()
Get Whether to resolve plugin versions using LATEST metadata.


getPlugins

public java.util.List getPlugins()
Method getPlugins


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.


removePlugin

public void removePlugin(Plugin plugin)
Method removePlugin

Parameters:
plugin -

setAutoUpdate

public void setAutoUpdate(java.lang.String autoUpdate)
Set Specifies whether the user should be prompted to update plugins.

Parameters:
autoUpdate -

setCheckLatest

public void setCheckLatest(java.lang.String checkLatest)
Set Whether to resolve plugin versions using LATEST metadata.

Parameters:
checkLatest -

setPlugins

public void setPlugins(java.util.List plugins)
Set Specified plugin update policy information.

Parameters:
plugins -

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 -

getPluginsByKey

public java.util.Map getPluginsByKey()

flushPluginsByKey

public void flushPluginsByKey()

setRuntimeInfo

public void setRuntimeInfo(RuntimeInfo runtimeInfo)

getRuntimeInfo

public RuntimeInfo getRuntimeInfo()

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)
Overrides:
setModelEncoding in class TrackableBase

getModelEncoding

public java.lang.String getModelEncoding()
Overrides:
getModelEncoding in class TrackableBase


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.