Arc::PluginArgument Class Reference

Base class for passing arguments to loadable ARC components. More...

#include <Plugin.h>

Inheritance diagram for Arc::PluginArgument:
Arc::BrokerPluginArgument Arc::ClassLoaderPluginArgument Arc::JobControllerPluginPluginArgument Arc::MCCPluginArgument Arc::ServicePluginArgument Arc::SubmitterPluginArgument ArcSec::PDPPluginArgument ArcSec::SecHandlerPluginArgument

Public Member Functions

PluginsFactoryget_factory (void)
Glib::Module * get_module (void)

Detailed Description

Base class for passing arguments to loadable ARC components.

During its creation constructor function of ARC loadable component expects instance of class inherited from this one or wrapped in it. Then dynamic type casting is used for obtaining class of expected kind.


Member Function Documentation

PluginsFactory* Arc::PluginArgument::get_factory ( void   ) 

Returns pointer to factory which instantiated plugin.

Because factory usually destroys/unloads plugins in its destructor it should be safe to keep this pointer inside plugin for later use. But one must always check.

Glib::Module* Arc::PluginArgument::get_module ( void   ) 

Returns pointer to loadable module/library which contains plugin.

Corresponding factory keeps list of modules till itself is destroyed. So it should be safe to keep that pointer. But care must be taken if module contains persistent plugins. Such modules stay in memory after factory is detroyed. So it is advisable to use obtained pointer only in constructor function of plugin.


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 11:54:23 2012 for Hosting Environment (Daemon) by  doxygen 1.6.3