01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.jetspeed.engine;
18:
19: /**
20: * This interface contains all the constants for the engine.
21: *
22: * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
23: * @version $Id: JetspeedEngineConstants.java 516448 2007-03-09 16:25:47Z ate $
24: */
25: public interface JetspeedEngineConstants {
26: /**
27: * <p>The prefix used to denote the namespace reserved for and
28: * used by Jetspeed-specific configuration parameters (such as
29: * those passed in via servlet container's config file
30: * (<code>server.xml</code>), or the web app deployment descriptor
31: * (<code>web.xml</code>).</p>
32: *
33: * <p>For example, a parameter in the Jetspeed namespace would be
34: * <code>org.apache.jetspeed.loggingRoot</code>.</p>
35: */
36: public static final String CONFIG_NAMESPACE = "org.apache.jetspeed";
37:
38: /** The key for the Log4J File */
39: public static final String LOG4J_CONFIG_FILE = "log4j.file";
40:
41: /** The default value for the Log4J File */
42: public static final String LOG4J_CONFIG_FILE_DEFAULT = "/WEB-INF/conf/Log4j.properties";
43:
44: /** This is the default log file to be used for logging */
45: public static final String DEFAULT_LOGGER = "jetspeed";
46: public static final String CONSOLE_LOGGER = "console";
47:
48: /**
49: * The logging facility which captures output from the SchedulerService.
50: */
51: public static final String SCHEDULER_LOG_FACILITY = "scheduler";
52:
53: /**
54: * SMTP server uses to send mail.
55: */
56: public static final String MAIL_SERVER_KEY = "mail.server";
57:
58: /** Default Value for the Logging Directory, relative to the webroot */
59: public static final String LOGGING_ROOT_DEFAULT = "/logs";
60: public static final String LOGGING_ROOT = "loggingRoot";
61:
62: public static final String JETSPEED_PROPERTIES_KEY = "properties";
63: public static final String JETSPEED_PROPERTIES_DEFAULT = "/WEB-INF/conf/jetspeed.properties";
64:
65: /** If this value is set as applicationRoot, then the webContext is used
66: * as application root
67: */
68: public static final String WEB_CONTEXT = "webContext";
69:
70: /** Key for the Path to the Resources.properties File */
71: public static final String APPLICATION_ROOT_KEY = "applicationRoot";
72:
73: /** Default Value for the Path to the Resources.properties File */
74: public static final String APPLICATION_ROOT_DEFAULT = WEB_CONTEXT;
75:
76: /** This is the key used in the jetspeed.properties to access resources
77: * relative to the Web Application root. It might differ from the
78: * Application root, but the normal case is, that the webapp root
79: * and the application root point to the same path.
80: */
81: public static final String WEBAPP_ROOT_KEY = "webappRoot";
82:
83: public static final String PIPELINE_CLASS = "pipeline.class";
84: public static final String PIPELINE_DEFAULT = "pipeline.default";
85: public static final String PIPELINE_DIRECTORY = "pipeline.directory";
86:
87: /**
88: * This specifies the factory to use the Jetspeed java.util.prefs.Preferences
89: * implementation.
90: */
91: public static final String PREFERENCES_FACTORY = "preferences.factory";
92: public static final String PREFERENCES_FACTORY_DEFAULT = "org.apache.jetspeed.spi.services.prefs.impl.PreferencesFactoryImpl";
93:
94: }
|