Common tools library 6.0.0-SNAPSHOT

org.jboss.dashboard.toolkit.factory
Class ConfigWriter

java.lang.Object
  extended by org.jboss.dashboard.toolkit.factory.ConfigWriter
Direct Known Subclasses:
ConfigValueWriter

public abstract class ConfigWriter
extends Object


Field Summary
static String PROPERTY_SEPARATOR
           
 
Constructor Summary
protected ConfigWriter(String appPath, String commentsPath)
           
 
Method Summary
 boolean existsComponent(String component)
          Determines if there exists a custom configuration for given component
protected  File getPropertiesFilePath(String componentName)
          Get the properties file associated with given component.
protected  void writePropertiesToComponent(String componentName, Properties values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_SEPARATOR

public static final String PROPERTY_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

ConfigWriter

protected ConfigWriter(String appPath,
                       String commentsPath)
Method Detail

getPropertiesFilePath

protected File getPropertiesFilePath(String componentName)
Get the properties file associated with given component.

Parameters:
componentName - Factory component name to use
Returns:
a File pointing to the properties file.

existsComponent

public boolean existsComponent(String component)
Determines if there exists a custom configuration for given component

Parameters:
component - component name
Returns:
true if there is a custom configuration for this component.

writePropertiesToComponent

protected void writePropertiesToComponent(String componentName,
                                          Properties values)
                                   throws IOException
Throws:
IOException

Common tools library 6.0.0-SNAPSHOT

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.