From: bruce m. <tr...@us...> - 2004-07-30 01:33:38
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/config/light In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7955/modules/core/src/com/babeldoc/core/config/light Modified Files: LightConfigCommand.java LightConfigService.java Log Message: javadoc and formatting here. Index: LightConfigService.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/config/light/LightConfigService.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** LightConfigService.java 24 Jul 2004 00:18:50 -0000 1.14 --- LightConfigService.java 30 Jul 2004 01:33:00 -0000 1.15 *************** *** 87,95 **** /** ! * <p> ! * Ultra light configuration service. This searches for property files in the ! * classpath. This uses the ResourceLoader object which knows how to load ! * objects from a file, from the classpath or from a url ! * </p> * * @author Bmcdonald --- 87,93 ---- /** ! * Configuration service that stores its properties in regular properties files. This ! * searches for property files in the classpath. This uses the ResourceLoader object ! * which knows how to load objects from a file, from the classpath or from a url * * @author Bmcdonald *************** *** 99,110 **** */ public class LightConfigService extends Named implements IConfigService { ! /** constant: the .properties file suffix */ public static final String DOT_PROPERTIES = ".properties"; ! /** Log service to use */ private LogService log = LogService.getInstance(LightConfigService.class.getName()); /** ! * Default constructor */ public LightConfigService() { --- 97,108 ---- */ public class LightConfigService extends Named implements IConfigService { ! /** constant: the .properties file suffix. */ public static final String DOT_PROPERTIES = ".properties"; ! /** Log service to use. */ private LogService log = LogService.getInstance(LightConfigService.class.getName()); /** ! * Default constructor. */ public LightConfigService() { *************** *** 113,117 **** /** ! * named constructor * * @param name name this server --- 111,115 ---- /** ! * named constructor. * * @param name name this server *************** *** 142,146 **** /** * Get the name of the property file (adds properties to end of ! * the name if necessary) * * @param name configuration file name --- 140,144 ---- /** * Get the name of the property file (adds properties to end of ! * the name if necessary). * * @param name configuration file name *************** *** 157,161 **** /** ! * get a config bundle for the name and locale * * @param name configuration name --- 155,159 ---- /** ! * get a config bundle for the name and locale. * * @param name configuration name *************** *** 174,178 **** * @param name path to the configuration file * ! * @return */ public IConfig createConfig(String name) { --- 172,176 ---- * @param name path to the configuration file * ! * @return created object. */ public IConfig createConfig(String name) { *************** *** 181,190 **** /** ! * Currently unimplemented. * ! * @param name ! * @param config * ! * @return */ public boolean saveConfig(String name, IConfig config) { --- 179,190 ---- /** ! * Save this configuration. Tries to find a likely place to place the ! * properties - it can't be in a jar file. If cannot be found, place in ! * the BABELDOC_USER directory. * ! * @param name configuration name. ! * @param config the configuration object. * ! * @return success flag. */ public boolean saveConfig(String name, IConfig config) { *************** *** 256,261 **** * the most specific and the last elment is the most general. * ! * @param name ! * @param properties */ Properties mergePropertiesFileFromUserSearchPath(String name, --- 256,262 ---- * the most specific and the last elment is the most general. * ! * @param name name to search ! * @param properties properties to merge. ! * @return merged properties. */ Properties mergePropertiesFileFromUserSearchPath(String name, *************** *** 277,285 **** /** ! * Set the value for the named property for the named configuration * * @param configName name of the configuration to update * @param propertyName name of the property value to set * @param value value to set */ public void setString(String configName, String propertyName, String value) throws ConfigException { --- 278,287 ---- /** ! * Set the value for the named property for the named configuration. * * @param configName name of the configuration to update * @param propertyName name of the property value to set * @param value value to set + * @throws ConfigException configuration exception */ public void setString(String configName, String propertyName, String value) throws ConfigException { Index: LightConfigCommand.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/config/light/LightConfigCommand.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** LightConfigCommand.java 7 Aug 2003 08:46:35 -0000 1.2 --- LightConfigCommand.java 30 Jul 2004 01:33:00 -0000 1.3 *************** *** 11,22 **** /** */ public class LightConfigCommand extends BabeldocCommand{ public static final String SPACER = " "; /** ! * process the class * ! * @param args DOCUMENT ME! */ public LightConfigCommand(String[] args) { --- 11,28 ---- /** + * Command object that operates on the light configuration service. + * + * @author bmcdonald + * @version 1.1 */ public class LightConfigCommand extends BabeldocCommand{ + + /** Some space. */ public static final String SPACER = " "; /** ! * process the class. * ! * @param args Command line */ public LightConfigCommand(String[] args) { *************** *** 26,30 **** /** ! * Execute the command * * @param commandLine The command line. --- 32,36 ---- /** ! * Execute the command. * * @param commandLine The command line. *************** *** 96,100 **** /** ! * Main entry point * * @param args the name of the stage and the name=value pairs --- 102,106 ---- /** ! * Main entry point. * * @param args the name of the stage and the name=value pairs |