org.mevenide.environment
Class SysEnvLocationFinder

java.lang.Object
  extended by org.mevenide.environment.AbstractLocationFinder
      extended by org.mevenide.environment.SysEnvLocationFinder
All Implemented Interfaces:
ILocationFinder

public class SysEnvLocationFinder
extends AbstractLocationFinder

Version:
$Id: SysEnvLocationFinder.java,v 1.1 15 nov. 2003 Exp gdodinet
Author:
Gilles Dodinet (gdodinet@wanadoo.fr)

Method Summary
static SysEnvLocationFinder getInstance()
           
 java.lang.String getJavaHome()
           
 java.lang.String getMavenHome()
           
 java.lang.String getMavenLocalHome()
           
 java.lang.String getMavenLocalRepository()
           
 java.lang.String getMavenPluginsDir()
           
 java.lang.String getUserHome()
           
static void setDefaultSysEnvProvider(SysEnvProvider prov)
          Sets the SysEnv provider instance for the locationFinder.
 
Methods inherited from class org.mevenide.environment.AbstractLocationFinder
getConfigurationFileLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SysEnvLocationFinder getInstance()

setDefaultSysEnvProvider

public static void setDefaultSysEnvProvider(SysEnvProvider prov)
Sets the SysEnv provider instance for the locationFinder. Please not that if you define a custom one impl, you should set it *before* the singleton SysEnvLocationFinder instance is created, thus before the getInstance() method is called for the first time. Best place is during the startup sequence of your IDE. (For performance reasons your provider impl should be lazy initialized).


getJavaHome

public java.lang.String getJavaHome()

getMavenHome

public java.lang.String getMavenHome()

getMavenLocalHome

public java.lang.String getMavenLocalHome()

getMavenLocalRepository

public java.lang.String getMavenLocalRepository()

getMavenPluginsDir

public java.lang.String getMavenPluginsDir()

getUserHome

public java.lang.String getUserHome()


Copyright © 2003-2005 The Codehaus. All Rights Reserved.