You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2002/04/16 23:30:15 UTC

cvs commit: jakarta-turbine-3/src/java/org/apache/turbine TurbineConstants.java

dlr         02/04/16 14:30:15

  Modified:    src/java/org/apache/turbine TurbineConstants.java
  Log:
  o Introduced CONFIG_NAMESPACE for use in the Turbine servlet.
  
  o Broke long lines at 80 characters.
  
  o Removed the DB_* constants, which were previously used by Torque
  (pre-decoupling and separation).  I added them to a TorqueConstants
  interface, but I have not yet checked it in because the constants it
  contains are not used in Torque.  Thoughts?
  
  Revision  Changes    Path
  1.15      +23 -57    jakarta-turbine-3/src/java/org/apache/turbine/TurbineConstants.java
  
  Index: TurbineConstants.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-3/src/java/org/apache/turbine/TurbineConstants.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -u -r1.14 -r1.15
  --- TurbineConstants.java	4 Mar 2002 23:45:35 -0000	1.14
  +++ TurbineConstants.java	16 Apr 2002 21:30:15 -0000	1.15
  @@ -65,6 +65,18 @@
   public interface TurbineConstants
   {
       /**
  +     * <p>The prefix used to denote the namespace reserved for and
  +     * used by Turbine-specific configuration parameters (such as
  +     * those passed in via servlet container's config file
  +     * (<code>server.xml</code>), or the web app deployment descriptor
  +     * (<code>web.xml</code>).</p>
  +     *
  +     * <p>For example, a parameter in the Turbine namespace would be
  +     * <code>org.apache.turbine.loggingRoot</code>.</p>
  +     */
  +    public static final String CONFIG_NAMESPACE = "org.apache.turbine";
  +
  +    /**
        * The logging facility which captures output from Peers.
        */
       public static final String SQL_LOG_FACILITY = "sql";
  @@ -107,7 +119,8 @@
       /**
        * The size of the actions cache if module caching is on.
        */
  -    public static final String SCHEDULED_JOB_CACHE_SIZE = "scheduledjob.cache.size";
  +    public static final String SCHEDULED_JOB_CACHE_SIZE =
  +        "scheduledjob.cache.size";
   
       /**
        * The fully qualified class name of the default {@link
  @@ -126,7 +139,7 @@
       /**
        * Configuration key for the ExceptionHandler that Turbine will use.
        */
  -    public static final String EXCEPTION_HANDLER = "exceptionHandler.default" ;
  +    public static final String EXCEPTION_HANDLER = "exceptionHandler.default";
   
       /**
        * what resolver Turbine will use
  @@ -137,58 +150,8 @@
        * what will the resolver cache (replaces the <module.cache> property)
        */
       public static final String RESOLVER_MODULE_CACHE = "resolver.cache.module";
  -    public static final String RESOLVER_TEMPLATE_CACHE = "resolver.cache.template";
  -
  -    /**
  -     * JDBC database driver.
  -     */
  -    public static final String DB_DRIVER = "database.default.driver";
  -
  -    /**
  -     * JDBC database URL.
  -     */
  -    public static final String DB_URL = "database.default.url";
  -
  -    /**
  -     * JDBC username.
  -     */
  -    public static final String DB_USERNAME = "database.default.username";
  -
  -    /**
  -     * JDBC password.
  -     */
  -    public static final String DB_PASSWORD = "database.default.password";
  -
  -    /**
  -     * Maximum number of connections to pool.
  -     */
  -    public static final String DB_MAXCONNECTIONS = "database.maxConnections";
  -
  -    /**
  -     * Expiry time of database connections.
  -     */
  -    public static final String DB_EXPIRYTIME = "database.expiryTime";
  -
  -    /**
  -     * How long a connection request will wait before giving up.
  -     */
  -    public static final String DB_CONNECTION_WAIT_TIMEOUT = "database.connectionWaitTimeout";
  -
  -    /**
  -     * How often the PoolBrokerServer logs the status of the pool.
  -     */
  -    public static final String DB_CONNECTION_LOG_INTERVAL = "database.logInterval";
  -
  -    /**
  -     * Database adaptor.
  -     */
  -    public static final String DB_ADAPTOR = "database.adaptor";
  -
  -    /**
  -     * Indicates that the id broker will generate more ids
  -     * if the demand is high.
  -     */
  -    public static final String DB_IDBROKER_CLEVERQUANTITY = "database.idbroker.cleverquantity";
  +    public static final String RESOLVER_TEMPLATE_CACHE =
  +        "resolver.cache.template";
   
       /**
        * Home page template.
  @@ -235,12 +198,14 @@
       /**
        * Actions that performs session validation.
        */
  -    public static final String ACTION_SESSION_VALIDATOR = "action.sessionvalidator";
  +    public static final String ACTION_SESSION_VALIDATOR =
  +        "action.sessionvalidator";
   
       /**
        * I don't think this is being used, is it?
        */
  -    public static final String ACTION_ACCESS_CONTROLLER = "action.accesscontroller";
  +    public static final String ACTION_ACCESS_CONTROLLER =
  +        "action.accesscontroller";
   
       /**
        * Default layout.
  @@ -270,7 +235,8 @@
       /**
        * Message to display when screens variable invalid.
        */
  -    public static final String LOGIN_MESSAGE_NOSCREEN = "login.message.noscreen";
  +    public static final String LOGIN_MESSAGE_NOSCREEN =
  +        "login.message.noscreen";
   
       /**
        * Message to display when a user logs out.
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>