Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ServiceFinder2T< InterfaceType, ParentType > Class Template Reference

Utility class to find one or more services implementing the InterfaceType interface. More...

#include <arcane/core/ServiceFinder2.h>

Public Member Functions

 ServiceFinder2T (IApplication *app, ParentType *parent)
Public Member Functions inherited from Arcane::Internal::ServiceFinderBase2T< InterfaceType >
 ServiceFinderBase2T (IApplication *app, const ServiceBuildInfoBase &sbi)
virtual InterfaceType * create (const String &name)
 Creates an instance of the service name.
virtual Ref< InterfaceType > createReference (const String &name)
 Creates a reference to the service name.
virtual InterfaceType * create (const String &name, IMesh *mesh)
 Creates an instance of the service name for the mesh mesh.
virtual Ref< InterfaceType > createReference (const String &name, IMesh *mesh)
 Creates a reference to the service name for the mesh mesh.
virtual InterfaceType * getSingleton ()
 Singleton instance of the service having the InterfaceType interface.
virtual void createAll (Array< InterfaceType * > &instances)
 Creates an instance of every service that implements InterfaceType.
virtual UniqueArray< Ref< InterfaceType > > createAll ()
 Creates an instance of every service that implements InterfaceType.
SharedArray< FactoryType * > factories ()
void getServicesNames (Array< String > &names) const

Additional Inherited Members

Public Types inherited from Arcane::Internal::ServiceFinderBase2T< InterfaceType >
typedef IServiceFactory2T< InterfaceType > FactoryType
Protected Member Functions inherited from Arcane::Internal::ServiceFinderBase2T< InterfaceType >
InterfaceType * _create (const String &name, const ServiceBuildInfoBase &sbib)
Ref< InterfaceType > _createReference (const String &name, const ServiceBuildInfoBase &sbib)
void _createAll (Array< InterfaceType * > &instances, const ServiceBuildInfoBase &sbib)
UniqueArray< Ref< InterfaceType > > _createAll (const ServiceBuildInfoBase &sbib)
Protected Attributes inherited from Arcane::Internal::ServiceFinderBase2T< InterfaceType >
IApplicationm_application
ServiceBuildInfoBase m_service_build_info_base

Detailed Description

template<typename InterfaceType, typename ParentType>
class Arcane::ServiceFinder2T< InterfaceType, ParentType >

Utility class to find one or more services implementing the InterfaceType interface.

Deprecated
This class should no longer be used directly. Use ServiceBuilder instead.

Definition at line 271 of file ServiceFinder2.h.

Constructor & Destructor Documentation

◆ ServiceFinder2T()

template<typename InterfaceType, typename ParentType>
Arcane::ServiceFinder2T< InterfaceType, ParentType >::ServiceFinder2T ( IApplication * app,
ParentType * parent )
inline

Definition at line 276 of file ServiceFinder2.h.

◆ ~ServiceFinder2T()

template<typename InterfaceType, typename ParentType>
Arcane::ServiceFinder2T< InterfaceType, ParentType >::~ServiceFinder2T ( )
inline

Definition at line 281 of file ServiceFinder2.h.


The documentation for this class was generated from the following file: