org.mevenide.properties.resolver
Class ProjectWalker2

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

public class ProjectWalker2
extends java.lang.Object
implements IPropertyFinder

IQueryContext based replacement for ProjectWalker. fits into the resolver pattern. Is used in PropertyFilesAggregator to resolve ${pom. values) I guess we should rename the propertyFilesAgreggator.

Author:
Milos Kleint

Constructor Summary
ProjectWalker2(IQueryContext qcontext)
           
 
Method Summary
 int getLocation(java.lang.String key)
          Get to know where the idem is defined.
 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

ProjectWalker2

public ProjectWalker2(IQueryContext qcontext)
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

getLocation

public int getLocation(java.lang.String key)
Get to know where the idem is defined. 0 - POM file, 1 - POM's parent etc.. -1 - not defined.



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