The CppMicroServices Framework. More...
Public Member Functions | |
virtual | ~Framework (void) |
void | Start () |
Start this Framework. More... | |
void | Stop () |
Stop this Framework. More... | |
void | Uninstall () |
The Framework cannot be uninstalled. More... | |
std::string | GetLocation () const |
Returns this Framework's location. More... | |
void | SetAutoLoadingEnabled (bool enable) |
Enable or disable auto-install support. More... | |
Public Member Functions inherited from Module | |
Module (const Module &)=delete | |
Module & | operator= (const Module &)=delete |
virtual | ~Module () |
bool | IsLoaded () const |
Returns this module's current state. More... | |
ModuleContext * | GetModuleContext () const |
Returns this module's ModuleContext. More... | |
long | GetModuleId () const |
Returns this module's unique identifier. More... | |
std::string | GetName () const |
Returns the name of this module as specified by the US_CREATE_MODULE CMake macro. More... | |
ModuleVersion | GetVersion () const |
Returns the version of this module as specified by the US_INITIALIZE_MODULE CMake macro. More... | |
Any | GetProperty (const std::string &key) const |
Returns the value of the specified property for this module. More... | |
std::vector< std::string > | GetPropertyKeys () const |
Returns a list of top-level property keys for this module. More... | |
std::vector< ServiceReferenceU > | GetRegisteredServices () const |
Returns this module's ServiceReference list for all services it has registered or an empty list if this module has no registered services. More... | |
std::vector< ServiceReferenceU > | GetServicesInUse () const |
Returns this module's ServiceReference list for all services it is using or returns an empty list if this module is not using any services. More... | |
ModuleResource | GetResource (const std::string &path) const |
Returns the resource at the specified path in this module. More... | |
std::vector< ModuleResource > | FindResources (const std::string &path, const std::string &filePattern, bool recurse) const |
Returns resources in this module. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Module | |
static const std::string & | PROP_ID () |
Returns the property key for looking up this module's id. More... | |
static const std::string & | PROP_NAME () |
Returns the property key for looking up this module's name. More... | |
static const std::string & | PROP_LOCATION () |
Returns the property key for looking up this module's location in the file system. More... | |
static const std::string & | PROP_VERSION () |
Returns the property key with a value of module.version for looking up this module's version identifier. More... | |
static const std::string & | PROP_VENDOR () |
Returns the property key with a value of module.vendor for looking up this module's vendor information. More... | |
static const std::string & | PROP_DESCRIPTION () |
Returns the property key with a value of module.description for looking up this module's description. More... | |
static const std::string & | PROP_AUTOLOAD_DIR () |
Returns the property key with a value of module.autoload_dir for looking up this module's auto-load directory. More... | |
static const std::string & | PROP_AUTOLOADED_MODULES () |
Returns the property key with a value of module.autoloaded_modules for looking up this module's auto-load modules. More... | |
The CppMicroServices Framework.
A Framework is itself a bundle and is known as the "System Bundle". The System Bundle differs from other bundles in the following ways:
GetLocation
method returns the string: "System Bundle".Framework instances are created using a FrameworkFactory. The methods of this class can be used to manage and control the created framework instance.
|
virtual |
|
virtual |
void Framework::SetAutoLoadingEnabled | ( | bool | enable | ) |
Enable or disable auto-install support.
enable | If true , enable auto-install support, disable it otherwise. |
|
virtual |
|
virtual |
Stop this Framework.
The following steps are taken to stop this Framework:
After being stopped, this Framework may be discarded or started.
std::runtime_error | If stopping this Framework could not be initiated. |
Reimplemented from Module.