Minor formatting and documentation.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2114 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2013-04-06 22:40:51 +00:00
parent d90a13e60b
commit 3fd45cbb63
5 changed files with 51 additions and 24 deletions

View File

@ -58,7 +58,9 @@ class BaseCategoryForm extends BaseForm {
final TextField m_url;
final RadioGroup m_isAbstract;
final RadioGroup m_isEnabled;
private Label m_script = new Label("<script language=\"javascript\" src=\"/javascript/manipulate-input.js\"></script>", false);
private Label m_script = new Label(
"<script language=\"javascript\" src=\"/javascript/manipulate-input.js\"></script>",
false);

View File

@ -55,6 +55,12 @@ final class CategoryAddForm extends BaseCategoryForm {
}
private final class ProcessListener implements FormProcessListener {
/**
*
* @param e
* @throws FormProcessException
*/
public final void process(final FormSectionEvent e)
throws FormProcessException {
s_log.debug("Adding a category");

View File

@ -27,9 +27,9 @@ import com.arsdigita.util.Assert;
import com.arsdigita.util.Lockable;
/**
* A standard implementation of <code>SingleSelectionModel</code> and <code>Lockable</code>. Those
* wishing to define a SingleSelectionModel will ordinarily want to extend
* this class.
* A standard implementation of <code>SingleSelectionModel</code> and
* <code>Lockable</code>. Those wishing to define a SingleSelectionModel
* will ordinarily want to extend this class.
*
* @version $Id: AbstractSingleSelectionModel.java 287 2005-02-22 00:29:02Z sskracic $
*/

View File

@ -29,19 +29,12 @@ public final class Bebop {
private static final Logger s_log = Logger.getLogger(Bebop.class);
private static BebopConfig s_config;
private static BebopConfig s_config = BebopConfig.getInstance();
/**
* Gets the <code>BebopConfig</code> object.
*/
public static final BebopConfig getConfig() {
if (s_config == null) {
s_config = new BebopConfig();
// deprecated, use load() instead, load the default config db,
// which is ccm-core /bebop.properties for BebogConfig by definition
// s_config.load("ccm-core/bebop.properties");
s_config.load();
}
public static BebopConfig getConfig() {
return s_config;
}
}

View File

@ -38,8 +38,31 @@ import org.apache.log4j.Logger;
*/
public final class BebopConfig extends AbstractConfig {
/** A logger instance to assist debugging. */
private static final Logger s_log = Logger.getLogger(BebopConfig.class);
/** Singleton config object. */
private static BebopConfig s_config;
/**
* Gain a BebopConfig object.
*
* Singleton pattern, don't instantiate a config object using the
* constructor directly!
* @return
*/
public static synchronized BebopConfig getInstance() {
if (s_config == null) {
s_config = new BebopConfig();
s_config.load();
}
return s_config;
}
// set of configuration parameters
// /////////////////////////////////////////////////////////////////
/**
*
*/
@ -81,6 +104,9 @@ public final class BebopConfig extends AbstractConfig {
("waf.bebop.show_class_name", Parameter.OPTIONAL, Boolean.FALSE);
/**
* Constructor.
* Singelton pattern, don't instantiate a config object using the
* constructor directly! Use getConfig() instead.
*
*/
public BebopConfig() {