commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/messenger/src/java/org/apache/commons/messenger MessengerDigester.java
Date Tue, 13 Nov 2001 12:46:10 GMT
jstrachan    01/11/13 04:46:10

  Modified:    messenger/src/java/org/apache/commons/messenger
                        MessengerDigester.java
  Log:
  Added digester support for custom ConnectionFactory implemetnations
  
  Revision  Changes    Path
  1.4       +10 -2     jakarta-commons-sandbox/messenger/src/java/org/apache/commons/messenger/MessengerDigester.java
  
  Index: MessengerDigester.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/messenger/src/java/org/apache/commons/messenger/MessengerDigester.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MessengerDigester.java	2001/11/13 09:42:27	1.3
  +++ MessengerDigester.java	2001/11/13 12:46:10	1.4
  @@ -5,7 +5,7 @@
    * version 1.1, a copy of which has been included with this distribution in
    * the LICENSE file.
    * 
  - * $Id: MessengerDigester.java,v 1.3 2001/11/13 09:42:27 jstrachan Exp $
  + * $Id: MessengerDigester.java,v 1.4 2001/11/13 12:46:10 jstrachan Exp $
    */
   package org.apache.commons.messenger;
   
  @@ -15,7 +15,7 @@
     * that JMS Messengers can be created from an XML config file.</p>
     *
     * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
  -  * @version $Revision: 1.3 $
  +  * @version $Revision: 1.4 $
     */
   public class MessengerDigester extends Digester {
   
  @@ -23,6 +23,7 @@
       private String messengerManagerClass = "org.apache.commons.messenger.MessengerManager";
       private String messengerClass = "org.apache.commons.messenger.DefaultMessenger";
       private String sessionFactory = "org.apache.commons.messenger.SessionFactory";
  +    private String connectionFactory = "org.apache.commons.messenger.DummyConnectionFactory";
       private String jndiSessionFactory = "org.apache.commons.messenger.JNDISessionFactory";
   
       
  @@ -54,12 +55,19 @@
           );        
           
           addObjectCreate( "manager/messenger/factory", sessionFactory, "className" );
  +        addSetProperties( "manager/messenger/factory" );
           addSetNext( "manager/messenger/factory", "setSessionFactory",
              "org.apache.commons.messenger.SessionFactory"
           );
           addCallMethod( "manager/messenger/factory/property", "addProperty", 2);
           addCallParam( "manager/messenger/factory/property/name", 0 );
           addCallParam( "manager/messenger/factory/property/value", 1 );
  +        
  +        addObjectCreate( "manager/messenger/factory/connectionFactory", connectionFactory,
"className" );
  +        addSetProperties( "manager/messenger/factory/connectionFactory" );
  +        addSetNext( "manager/messenger/factory/connectionFactory", "setConnectionFactory",
  +           "javax.jms.ConnectionFactory"
  +        );
   
           
           addObjectCreate( "manager/messenger/jndi", jndiSessionFactory, "className" );
  
  
  

--
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