summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/Plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src/qpid/Plugin.h')
-rw-r--r--qpid/cpp/src/qpid/Plugin.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/qpid/cpp/src/qpid/Plugin.h b/qpid/cpp/src/qpid/Plugin.h
index 4e057872b9..a0beba0d92 100644
--- a/qpid/cpp/src/qpid/Plugin.h
+++ b/qpid/cpp/src/qpid/Plugin.h
@@ -34,18 +34,18 @@ struct Options;
/**
* Plug-in base class.
*/
-class Plugin : private boost::noncopyable {
+class QPID_COMMON_CLASS_EXTERN Plugin : private boost::noncopyable {
public:
typedef std::vector<Plugin*> Plugins;
/** Default value returned by initOrder() */
static const int DEFAULT_INIT_ORDER=1000;
-
+
/**
* Base interface for targets that can receive plug-ins.
* Also allows plug-ins to attach a a function to be called
* when the target is 'finalized'.
*/
- class Target : private boost::noncopyable
+ class QPID_COMMON_CLASS_EXTERN Target : private boost::noncopyable
{
public:
/** Calls finalize() if not already called. */
@@ -63,19 +63,19 @@ class Plugin : private boost::noncopyable {
/**
* Constructor registers the plug-in to appear in getPlugins().
- *
+ *
* A concrete Plugin is instantiated as a global or static
- * member variable in a library so it is registered during
+ * member variable in a library so it is registered during
* initialization when the library is loaded.
*/
QPID_COMMON_EXTERN Plugin();
-
+
QPID_COMMON_EXTERN virtual ~Plugin();
/**
* Configuration options for the plugin.
* Then will be updated during option parsing by the host program.
- *
+ *
* @return An options group or 0 for no options. Default returns 0.
* Plugin retains ownership of return value.
*/
@@ -94,7 +94,7 @@ class Plugin : private boost::noncopyable {
/**
* Initialize Plugin functionality on a Target. Called after
* initializing the target.
- *
+ *
* Plugins should ignore targets they don't recognize.
*
* Called after the target is fully initialized.
@@ -108,7 +108,7 @@ class Plugin : private boost::noncopyable {
* a lower/higher value than DEFAULT_INIT_ORDER.
*/
QPID_COMMON_EXTERN virtual int initOrder() const;
-
+
/** List of registered Plugin objects.
* Caller must not delete plugin pointers.
*/
@@ -123,7 +123,7 @@ class Plugin : private boost::noncopyable {
/** For each registered plugin, add plugin.getOptions() to opts. */
QPID_COMMON_EXTERN static void addOptions(Options& opts);
};
-
+
} // namespace qpid
#endif /*!QPID_PLUGIN_H*/