commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oalex...@apache.org
Subject cvs commit: jakarta-commons-sandbox/services/src/java/org/apache/commons/services EventModule.java QueueModule.java ServiceManager.java ServiceModule.java
Date Fri, 01 Feb 2002 16:32:38 GMT
oalexeev    02/02/01 08:32:38

  Modified:    services/src/java/org/apache/commons/services
                        EventModule.java QueueModule.java
                        ServiceManager.java ServiceModule.java
  Log:
  Add set-property rule to support custom configs with DTD-validation.
  
  Revision  Changes    Path
  1.7       +4 -1      jakarta-commons-sandbox/services/src/java/org/apache/commons/services/EventModule.java
  
  Index: EventModule.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/services/src/java/org/apache/commons/services/EventModule.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- EventModule.java	31 Jan 2002 16:57:44 -0000	1.6
  +++ EventModule.java	1 Feb 2002 16:32:38 -0000	1.7
  @@ -16,7 +16,7 @@
   
   /** Event module. Generate events.
    * 
  - *  @version $Id: EventModule.java,v 1.6 2002/01/31 16:57:44 oalexeev Exp $
  + *  @version $Id: EventModule.java,v 1.7 2002/02/01 16:32:38 oalexeev Exp $
    *  @author Oleg V Alexeev
    */
   public class EventModule extends Module {
  @@ -96,6 +96,9 @@
                   digester.addSetNext( eventPath, "addEventRegistration",
                           "org.apache.commons.services.EventRegistration" );
                   digester.addSetProperties( eventPath );
  +                digester.addSetProperty( eventPath + "/set-property",
  +                        "property", "value" );
  +
   
                   return digester;
           }
  
  
  
  1.5       +4 -2      jakarta-commons-sandbox/services/src/java/org/apache/commons/services/QueueModule.java
  
  Index: QueueModule.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/services/src/java/org/apache/commons/services/QueueModule.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- QueueModule.java	31 Jan 2002 16:57:44 -0000	1.4
  +++ QueueModule.java	1 Feb 2002 16:32:38 -0000	1.5
  @@ -15,7 +15,7 @@
   
   /** QueueModule - manages queues.
    * 
  - *  @version $Id: QueueModule.java,v 1.4 2002/01/31 16:57:44 oalexeev Exp $
  + *  @version $Id: QueueModule.java,v 1.5 2002/02/01 16:32:38 oalexeev Exp $
    *  @author Oleg V Alexeev
    */
   public class QueueModule extends Module {
  @@ -100,7 +100,9 @@
                   digester.addSetNext( queuePath, "addQueue",
                           "org.apache.commons.services.Queue" );
                   digester.addSetProperties( queuePath );
  -
  +                digester.addSetProperty( queuePath + "/set-property",
  +                        "property", "value" );
  + 
                   return digester;
   
           }
  
  
  
  1.8       +7 -1      jakarta-commons-sandbox/services/src/java/org/apache/commons/services/ServiceManager.java
  
  Index: ServiceManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/services/src/java/org/apache/commons/services/ServiceManager.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ServiceManager.java	31 Jan 2002 16:57:44 -0000	1.7
  +++ ServiceManager.java	1 Feb 2002 16:32:38 -0000	1.8
  @@ -17,7 +17,7 @@
   /** 
    *  Core class in package.
    * 
  - *  @version $Id: ServiceManager.java,v 1.7 2002/01/31 16:57:44 oalexeev Exp $
  + *  @version $Id: ServiceManager.java,v 1.8 2002/02/01 16:32:38 oalexeev Exp $
    *  @author Oleg V Alexeev
    */
   public class ServiceManager implements Serializable, ConfigObject {
  @@ -115,6 +115,8 @@
                   digester.addSetNext( eventsRegistrationPath, "setEventModule",
                           "org.apache.commons.services.EventModule" );
                   digester.addSetProperties( eventsRegistrationPath );
  +                digester.addSetProperty( eventsRegistrationPath + "/set-property",
  +                        "property", "value" );
   
                   // Init services
                   digester.addRule( servicesRegistrationPath, 
  @@ -124,6 +126,8 @@
                   digester.addSetNext( servicesRegistrationPath, "setServiceModule",
                           "org.apache.commons.services.ServiceModule" );
                   digester.addSetProperties( servicesRegistrationPath );
  +                digester.addSetProperty( servicesRegistrationPath + "/set-property",
  +                        "property", "value" );
   
                   // Init queues
                   digester.addRule( queuesRegistrationPath, 
  @@ -133,6 +137,8 @@
                   digester.addSetNext( queuesRegistrationPath, "setQueueModule",
                           "org.apache.commons.services.QueueModule" );
                   digester.addSetProperties( queuesRegistrationPath );
  +                digester.addSetProperty( queuesRegistrationPath + "/set-property",
  +                        "property", "value" );
   
                   //----------------------------
   
  
  
  
  1.5       +4 -1      jakarta-commons-sandbox/services/src/java/org/apache/commons/services/ServiceModule.java
  
  Index: ServiceModule.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/services/src/java/org/apache/commons/services/ServiceModule.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ServiceModule.java	31 Jan 2002 16:57:44 -0000	1.4
  +++ ServiceModule.java	1 Feb 2002 16:32:38 -0000	1.5
  @@ -15,7 +15,7 @@
   
   /** ServiceModule manages services. 
    * 
  - *  @version $Id: ServiceModule.java,v 1.4 2002/01/31 16:57:44 oalexeev Exp $
  + *  @version $Id: ServiceModule.java,v 1.5 2002/02/01 16:32:38 oalexeev Exp $
    *  @author Oleg V Alexeev
    */
   public class ServiceModule extends Module {
  @@ -86,6 +86,9 @@
                   digester.addSetNext( servicePath, "addService",
                           "org.apache.commons.services.Service" );
                   digester.addSetProperties( servicePath );
  +                digester.addSetProperty( servicePath + "/set-property",
  +                        "property", "value" );
  +
   
                   return digester;
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message