org.mevenide.properties.resolver
Class PluginPropertiesFinder

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

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

a IPropertyFinder implementation that iterates the installed plugin's plugin.properties files for the default values. Is to be used when none of the normal properties files defines the property. TODO: logic for refresh, remember the plugins included, check for lastmodified of the files?? mkleint - not on my priority list, new plugin install or upgrade during IDE lifetime is out-of-scope for now.

Author:
Milos Kleint

Method Summary
 java.util.Set getDefaultPluginKeys()
           
 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
 

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

getDefaultPluginKeys

public java.util.Set getDefaultPluginKeys()

reload

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

Specified by:
reload in interface IPropertyFinder


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