org.apache.maven.plugin
Class PluginCacheManager

java.lang.Object
  extended byorg.apache.maven.plugin.PluginCacheManager
All Implemented Interfaces:
PluginDefinitionHandler

final class PluginCacheManager
extends java.lang.Object
implements PluginDefinitionHandler

Plugin cache management.

Author:
Brett Porter

Field Summary
static java.lang.String ARTIFACT_ID_CACHE
          Artifact ID to Plug-in cache
static java.lang.String CALLBACKS_CACHE
          call backs cache
static java.lang.String DYNAMIC_TAGLIBS_CACHE
          Taglibs cache
static java.lang.String GOALS_CACHE
          Goal cache
static java.lang.String LOCK_CACHE
          Plug-in cache lock.
static java.lang.String PLUGIN_DYNATAG_DEPS_CACHE
          Plugin -> dynatag dependencies.
static java.lang.String PLUGINS_CACHE
          Plug-in cache
static java.lang.String VALID_CACHE
          Plug-in cache valid.
 
Constructor Summary
PluginCacheManager()
          Default constructor.
 
Method Summary
 void addDynaTagLib(java.lang.String tagLibUri, JellyScriptHousing housing)
           
 void addGoal(java.lang.String name, java.lang.String prereqs, java.lang.String description, JellyScriptHousing housing)
           
 void addPluginDynaTagDep(JellyScriptHousing housing, java.lang.String uri)
           
 void addPostGoal(java.lang.String name, JellyScriptHousing housing)
           
 void addPreGoal(java.lang.String name, JellyScriptHousing housing)
           
(package private)  void checkLockFile(java.io.File lockFile)
           
(package private)  java.util.Properties getCallbackCache()
           
(package private)  java.util.Properties getDynaTagLibCache()
           
 java.util.Properties getGoalCache()
           
(package private)  java.util.Properties getPluginCache()
           
(package private)  java.util.Properties getPluginDynaTagDepsCache()
           
(package private)  void invalidateCache(java.lang.String pluginName)
          Invalidate cache information for a single plugin.
(package private)  void loadCache(java.io.File directory)
          Load on-disk cache information, if possible.
(package private)  boolean mapPlugins(GoalToJellyScriptHousingMapper mapper, PluginManager manager, java.util.Map pluginDirs)
           
(package private)  void registerPlugin(java.lang.String name, JellyScriptHousing housing)
           
 void removePluginDynaTagDep(JellyScriptHousing housing, java.lang.String uri)
           
(package private)  void saveCache(java.io.File directory)
           
 void setDefaultGoalName(java.lang.String defaultGoalName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCK_CACHE

public static final java.lang.String LOCK_CACHE
Plug-in cache lock.

See Also:
Constant Field Values

VALID_CACHE

public static final java.lang.String VALID_CACHE
Plug-in cache valid.

See Also:
Constant Field Values

ARTIFACT_ID_CACHE

public static final java.lang.String ARTIFACT_ID_CACHE
Artifact ID to Plug-in cache

See Also:
Constant Field Values

PLUGINS_CACHE

public static final java.lang.String PLUGINS_CACHE
Plug-in cache

See Also:
Constant Field Values

GOALS_CACHE

public static final java.lang.String GOALS_CACHE
Goal cache

See Also:
Constant Field Values

CALLBACKS_CACHE

public static final java.lang.String CALLBACKS_CACHE
call backs cache

See Also:
Constant Field Values

DYNAMIC_TAGLIBS_CACHE

public static final java.lang.String DYNAMIC_TAGLIBS_CACHE
Taglibs cache

See Also:
Constant Field Values

PLUGIN_DYNATAG_DEPS_CACHE

public static final java.lang.String PLUGIN_DYNATAG_DEPS_CACHE
Plugin -> dynatag dependencies.

See Also:
Constant Field Values
Constructor Detail

PluginCacheManager

public PluginCacheManager()
Default constructor.

Method Detail

checkLockFile

void checkLockFile(java.io.File lockFile)

saveCache

void saveCache(java.io.File directory)
         throws java.io.IOException
Throws:
java.io.IOException

loadCache

void loadCache(java.io.File directory)
Load on-disk cache information, if possible.


addPluginDynaTagDep

public void addPluginDynaTagDep(JellyScriptHousing housing,
                                java.lang.String uri)
Specified by:
addPluginDynaTagDep in interface PluginDefinitionHandler

removePluginDynaTagDep

public void removePluginDynaTagDep(JellyScriptHousing housing,
                                   java.lang.String uri)
Specified by:
removePluginDynaTagDep in interface PluginDefinitionHandler

registerPlugin

void registerPlugin(java.lang.String name,
                    JellyScriptHousing housing)
              throws MavenException
Throws:
MavenException

addPostGoal

public void addPostGoal(java.lang.String name,
                        JellyScriptHousing housing)
Specified by:
addPostGoal in interface PluginDefinitionHandler

addPreGoal

public void addPreGoal(java.lang.String name,
                       JellyScriptHousing housing)
Specified by:
addPreGoal in interface PluginDefinitionHandler

addGoal

public void addGoal(java.lang.String name,
                    java.lang.String prereqs,
                    java.lang.String description,
                    JellyScriptHousing housing)
Specified by:
addGoal in interface PluginDefinitionHandler

addDynaTagLib

public void addDynaTagLib(java.lang.String tagLibUri,
                          JellyScriptHousing housing)
Specified by:
addDynaTagLib in interface PluginDefinitionHandler

invalidateCache

void invalidateCache(java.lang.String pluginName)
Invalidate cache information for a single plugin.

Parameters:
pluginName - The name of the plugin to invalid cache entries.

mapPlugins

boolean mapPlugins(GoalToJellyScriptHousingMapper mapper,
                   PluginManager manager,
                   java.util.Map pluginDirs)
             throws java.io.IOException
Parameters:
mapper -
Throws:
java.io.IOException

setDefaultGoalName

public void setDefaultGoalName(java.lang.String defaultGoalName)
Specified by:
setDefaultGoalName in interface PluginDefinitionHandler

getPluginCache

java.util.Properties getPluginCache()
Returns:
Properties

getGoalCache

public java.util.Properties getGoalCache()
Returns:
Properties

getCallbackCache

java.util.Properties getCallbackCache()
Returns:
Returns the callbackCache.

getDynaTagLibCache

java.util.Properties getDynaTagLibCache()
Returns:
Returns the dynaTagLibCache.

getPluginDynaTagDepsCache

java.util.Properties getPluginDynaTagDepsCache()
Returns:
Returns the pluginDynaTagDepsCache.


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