de.matthias_burbach.deputy.core.repository
Class PomLoader

java.lang.Object
  extended byde.matthias_burbach.deputy.core.repository.PomLoader

public final class PomLoader
extends java.lang.Object

Allows centralization of POM document loading and building in order to cache most effectively because loading and building many POMs is performance critical.

Author:
Matthias Burbach

Method Summary
 void clearCache()
          Clears the internal cache of already loaded POM documents.
static PomLoader getInstance()
           
 org.jdom.Document loadPom(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PomLoader getInstance()
Returns:
An instance of this class.

clearCache

public void clearCache()
Clears the internal cache of already loaded POM documents.


loadPom

public org.jdom.Document loadPom(java.lang.String path)
Parameters:
path - The absolute path of the Maven project object model (POM) to load.
Returns:
The document loaded.


Copyright © 2005-2007 . All Rights Reserved.