You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by nm...@apache.org on 2008/01/06 19:25:23 UTC

svn commit: r609367 - in /activemq/activemq-cpp/trunk/src/main/activemq/cmsutil: CmsAccessor.h CmsDestinationAccessor.cpp CmsDestinationAccessor.h CmsTemplate.cpp CmsTemplate.h

Author: nmittler
Date: Sun Jan  6 10:25:21 2008
New Revision: 609367

URL: http://svn.apache.org/viewvc?rev=609367&view=rev
Log:
AMQCPP-152 - Adding classes for support of CmsTemplate

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsAccessor.h
    activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsDestinationAccessor.cpp
    activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsDestinationAccessor.h
    activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsTemplate.cpp
    activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsTemplate.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsAccessor.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsAccessor.h?rev=609367&r1=609366&r2=609367&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsAccessor.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsAccessor.h Sun Jan  6 10:25:21 2008
@@ -56,14 +56,16 @@
          * Initializes this object and prepares it for use.  This should be called
          * before any other methds are called.
          */
-        virtual void init() throw (cms::CMSException, decaf::lang::exceptions::IllegalStateException) {
+        virtual void init() 
+        throw (cms::CMSException, decaf::lang::exceptions::IllegalStateException) {
             checkConnectionFactory();
         }
         
         /**
          * Shuts down this object and destroys any allocated resources.
          */
-        virtual void destroy() throw (cms::CMSException) {
+        virtual void destroy() 
+        throw (cms::CMSException, decaf::lang::exceptions::IllegalStateException) {
             resourceLifecycleManager.destroy();
         }
         

Modified: activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsDestinationAccessor.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsDestinationAccessor.cpp?rev=609367&r1=609366&r2=609367&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsDestinationAccessor.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsDestinationAccessor.cpp Sun Jan  6 10:25:21 2008
@@ -35,7 +35,8 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-void CmsDestinationAccessor::init() throw (cms::CMSException) {
+void CmsDestinationAccessor::init() 
+throw (cms::CMSException, IllegalStateException) {
     
     // Invoke the base class.
     CmsAccessor::init();

Modified: activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsDestinationAccessor.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsDestinationAccessor.h?rev=609367&r1=609366&r2=609367&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsDestinationAccessor.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsDestinationAccessor.h Sun Jan  6 10:25:21 2008
@@ -60,7 +60,8 @@
          * Initializes this object and prepares it for use.  This should be called
          * before any other methds are called.
          */
-        virtual void init() throw (cms::CMSException);
+        virtual void init() 
+        throw (cms::CMSException, decaf::lang::exceptions::IllegalStateException);
                 
         virtual bool isPubSubDomain() const {
             return this->pubSubDomain;

Modified: activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsTemplate.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsTemplate.cpp?rev=609367&r1=609366&r2=609367&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsTemplate.cpp (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsTemplate.cpp Sun Jan  6 10:25:21 2008
@@ -50,6 +50,16 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
+void CmsTemplate::init() throw (cms::CMSException, IllegalStateException) {
+    
+    // Invoke the base class.
+    CmsDestinationAccessor::init();
+    
+    // Make sure we have a valid default destination.
+    checkDefaultDestination();   
+}
+
+////////////////////////////////////////////////////////////////////////////////
 void CmsTemplate::checkDefaultDestination() throw (IllegalStateException) {
     if (this->defaultDestination == NULL) {
         throw IllegalStateException(

Modified: activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsTemplate.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsTemplate.h?rev=609367&r1=609366&r2=609367&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsTemplate.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/cmsutil/CmsTemplate.h Sun Jan  6 10:25:21 2008
@@ -81,6 +81,13 @@
     	    
     	virtual ~CmsTemplate();
     	
+    	/**
+         * Initializes this object and prepares it for use.  This should be called
+         * before any other methds are called.
+         */
+        virtual void init() 
+        throw (cms::CMSException, decaf::lang::exceptions::IllegalStateException);
+    	        
     	virtual void setDefaultDestination(cms::Destination* defaultDestination) {
     	    this->defaultDestination = defaultDestination;
     	}