activemq-cpp-3.4.0

src/main/activemq/cmsutil/DestinationResolver.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 #ifndef _ACTIVEMQ_CMSUTIL_DESTINATIONRESOLVER_H_
00018 #define _ACTIVEMQ_CMSUTIL_DESTINATIONRESOLVER_H_
00019 
00020 #include <cms/Session.h>
00021 #include <activemq/util/Config.h>
00022 
00023 namespace activemq {
00024 namespace cmsutil {
00025 
00026     // Forward declarations.
00027     class ResourceLifecycleManager;
00028 
00032     class AMQCPP_API DestinationResolver {
00033     public:
00034 
00035         virtual ~DestinationResolver() throw() {}
00036 
00045         virtual void init( ResourceLifecycleManager* mgr ) = 0;
00046 
00050         virtual void destroy() = 0;
00051 
00070         virtual cms::Destination* resolveDestinationName( cms::Session* session,
00071                                                           const std::string& destName,
00072                                                           bool pubSubDomain ) = 0;
00073 
00074     };
00075 
00076 }}
00077 
00078 #endif /* _ACTIVEMQ_CMSUTIL_DESTINATIONRESOLVER_H_ */