activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1076521 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala
Date Thu, 03 Mar 2011 04:54:32 GMT
Author: chirino
Date: Thu Mar  3 04:54:31 2011
New Revision: 1076521

URL: http://svn.apache.org/viewvc?rev=1076521&view=rev
Log:
Change QueueDomin and TopicDomain to classes so that they can be extended easier.

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala?rev=1076521&r1=1076520&r2=1076521&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala
Thu Mar  3 04:54:31 2011
@@ -259,8 +259,8 @@ class LocalRouter(val host:VirtualHost) 
     }
 
   }
-
-  object topic_domain extends Domain[Topic] {
+  val topic_domain = new TopicDomain
+  class TopicDomain extends Domain[Topic] {
 
     val topic_id_counter = new LongCounter
 
@@ -365,7 +365,8 @@ class LocalRouter(val host:VirtualHost) 
 
   }
 
-  object queue_domain extends Domain[Queue] {
+  val queue_domain = new QueueDomain
+  class QueueDomain extends Domain[Queue] {
 
     def can_create_queue(config:QueueDTO, security:SecurityContext) = {
       if( host.authorizer==null || security==null) {



Mime
View raw message