You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2011/03/03 05:54:32 UTC
svn commit: r1076521 -
/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala
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) {