juergen 01/08/29 06:03:16
Modified: src/share/org/apache/slide/common Domain.java
Log:
the default file name for Domain.xml is Domain.xml
Revision Changes Path
1.29 +20 -20 jakarta-slide/src/share/org/apache/slide/common/Domain.java
Index: Domain.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/Domain.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- Domain.java 2001/08/13 17:19:55 1.28
+++ Domain.java 2001/08/29 13:03:16 1.29
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/Domain.java,v
1.28 2001/08/13 17:19:55 dirkv Exp $
- * $Revision: 1.28 $
- * $Date: 2001/08/13 17:19:55 $
+ * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/Domain.java,v
1.29 2001/08/29 13:03:16 juergen Exp $
+ * $Revision: 1.29 $
+ * $Date: 2001/08/29 13:03:16 $
*
* ====================================================================
*
@@ -91,11 +91,11 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Remy Maucherat</a>
* @author Dirk Verbeeck
- * @version $Revision: 1.28 $
+ * @version $Revision: 1.29 $
*/
public final class Domain {
- private final static String LOG_CHANNEL = Domain.class.getName();
+ private final static String LOG_CHANNEL = Domain.class.getName();
// ----------------------------------------------------- Instance Variables
@@ -163,7 +163,7 @@
/**
* Return the default namespace of this domain.
- *
+ *
* @return the name of the default namespace
*/
public static String getDefaultNamespace() {
@@ -253,7 +253,7 @@
/**
* holds the expanded file name of domain.xml
**/
- private static String domainFileName = null;
+ private static String domainFileName = "Domain.xml";
/**
* Access the file name of domain.xml.
@@ -475,7 +475,7 @@
/**
- * Check if the default channel with the specified level is enabled for
+ * Check if the default channel with the specified level is enabled for
* logging.
*
* @param level The level specification
@@ -486,7 +486,7 @@
/**
- * Check if the default channel with the DEBUG level is enabled for
+ * Check if the default channel with the DEBUG level is enabled for
* logging.
*/
public static boolean isDebugEnabled() {
@@ -495,7 +495,7 @@
/**
- * Check if the default channel with the WARNING level is enabled for
+ * Check if the default channel with the WARNING level is enabled for
* logging.
*/
public static boolean isWarningEnabled() {
@@ -512,7 +512,7 @@
/**
- * Check if the default channel with the ERROR level is enabled for
+ * Check if the default channel with the ERROR level is enabled for
* logging.
*/
public static boolean isErrorEnabled() {
@@ -677,15 +677,15 @@
namespaceLogger=logger;
}
else {
- try {
- namespaceLogger =
- (Logger) (Class.forName(loggerClass).newInstance());
- namespaceLogger.setLoggerLevel(configuration.getAttributeAsInt
- ("logger-level", Logger.INFO));
- } catch (Exception e) {
- error(e);
- }
- }
+ try {
+ namespaceLogger =
+ (Logger) (Class.forName(loggerClass).newInstance());
+ namespaceLogger.setLoggerLevel(configuration.getAttributeAsInt
+ ("logger-level", Logger.INFO));
+ } catch (Exception e) {
+ error(e);
+ }
+ }
Configuration namespaceDefinition =
configuration.getConfiguration("definition");