C++ Micro Services  2.1.1
A dynamic OSGi-like C++ service registry
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
ServiceFindHook Struct Reference

Service Find Hook Service. More...

Public Member Functions

virtual ~ServiceFindHook ()
virtual void Find (const ModuleContext *context, const std::string &name, const std::string &filter, ShrinkableVector< ServiceReferenceBase > &references)=0
 Find hook method.
virtual ~ServiceFindHook ()
virtual void Find (const ModuleContext *context, const std::string &name, const std::string &filter, ShrinkableVector< ServiceReferenceBase > &references)=0
 Find hook method.
virtual ~ServiceFindHook ()
virtual void Find (const ModuleContext *context, const std::string &name, const std::string &filter, ShrinkableVector< ServiceReferenceBase > &references)=0
 Find hook method.

Detailed Description

Service Find Hook Service.

Modules registering this service will be called during service find (get service references) operations.

Remarks
Implementations of this interface are required to be thread-safe.

Constructor & Destructor Documentation

virtual ServiceFindHook::~ServiceFindHook ( )
virtual
virtual ServiceFindHook::~ServiceFindHook ( )
virtual
virtual ServiceFindHook::~ServiceFindHook ( )
virtual

Member Function Documentation

virtual void ServiceFindHook::Find ( const ModuleContext context,
const std::string &  name,
const std::string &  filter,
ShrinkableVector< ServiceReferenceBase > &  references 
)
pure virtual

Find hook method.

This method is called during the service find operation (for example, ModuleContext::GetServiceReferences<S>()). This method can filter the result of the find operation.

Parameters
contextThe module context of the module performing the find operation.
nameThe class name of the services to find or an empty string to find all services.
filterThe filter criteria of the services to find or an empty string for no filter criteria.
referencesA list of Service References to be returned as a result of the find operation. The implementation of this method may remove service references from the list to prevent the references from being returned to the module performing the find operation.
virtual void ServiceFindHook::Find ( const ModuleContext context,
const std::string &  name,
const std::string &  filter,
ShrinkableVector< ServiceReferenceBase > &  references 
)
pure virtual

Find hook method.

This method is called during the service find operation (for example, ModuleContext::GetServiceReferences<S>()). This method can filter the result of the find operation.

Parameters
contextThe module context of the module performing the find operation.
nameThe class name of the services to find or an empty string to find all services.
filterThe filter criteria of the services to find or an empty string for no filter criteria.
referencesA list of Service References to be returned as a result of the find operation. The implementation of this method may remove service references from the list to prevent the references from being returned to the module performing the find operation.
virtual void ServiceFindHook::Find ( const ModuleContext context,
const std::string &  name,
const std::string &  filter,
ShrinkableVector< ServiceReferenceBase > &  references 
)
pure virtual

Find hook method.

This method is called during the service find operation (for example, ModuleContext::GetServiceReferences<S>()). This method can filter the result of the find operation.

Parameters
contextThe module context of the module performing the find operation.
nameThe class name of the services to find or an empty string to find all services.
filterThe filter criteria of the services to find or an empty string for no filter criteria.
referencesA list of Service References to be returned as a result of the find operation. The implementation of this method may remove service references from the list to prevent the references from being returned to the module performing the find operation.