org.mevenide.properties.resolver
Class DefaultsResolver

java.lang.Object
  extended byorg.mevenide.properties.resolver.DefaultsResolver
All Implemented Interfaces:
IPropertyFinder

public final class DefaultsResolver
extends java.lang.Object
implements IPropertyFinder

a IPropertyFinder implementation that contains the default values. Is to be used when none of the properties files defines the property. Takes the values partly from ILocationFinder values and partly from the a special prop file that contains the assumed maven defaults.

Author:
Milos Kleint

Constructor Summary
DefaultsResolver(java.io.File projectFile, java.io.File userFile)
          Deprecated.  
DefaultsResolver(IQueryContext cont)
           
 
Method Summary
 java.util.Set getDefaultKeys()
           
 java.lang.String getValue(java.lang.String key)
          Returns the value for the given key, if found.
 void reload()
          releases any cached values and reloads the properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultsResolver

public DefaultsResolver(java.io.File projectFile,
                        java.io.File userFile)
Deprecated.  

Creates a new instance of DefaultsResolver


DefaultsResolver

public DefaultsResolver(IQueryContext cont)
Method Detail

getValue

public java.lang.String getValue(java.lang.String key)
Description copied from interface: IPropertyFinder
Returns the value for the given key, if found. Otherwise null.

Specified by:
getValue in interface IPropertyFinder

reload

public void reload()
Description copied from interface: IPropertyFinder
releases any cached values and reloads the properties file.

Specified by:
reload in interface IPropertyFinder

getDefaultKeys

public java.util.Set getDefaultKeys()


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