PLCnext API Documentation 25.0.2.69
|
Interface for service factory classes to create instances of the service implementation, service stubs or service security stub, respectively. More...
#include <IRscServiceFactory.hpp>
Public Types | |
using | Ptr = std::shared_ptr< IRscServiceFactory > |
The shared_tr type of this type. | |
Public Member Functions | |
IRscServiceFactory (void)=default | |
The default constructor. | |
IRscServiceFactory (const IRscServiceFactory &arg)=delete | |
The deleted copy constructor. | |
IRscServiceFactory (IRscServiceFactory &&arg) noexcept=default | |
The default move constructor. More... | |
IRscServiceFactory & | operator= (const IRscServiceFactory &)=delete |
The deleted assignment operator. | |
IRscServiceFactory & | operator= (IRscServiceFactory &&arg) noexcept=default |
The default move-assignment operator. More... | |
virtual | ~IRscServiceFactory (void)=default |
Destructs this instance and frees all resources. | |
virtual bool | IsSecure (void) const =0 |
Determines if the services of this factory shall be authorized by security. More... | |
virtual String | GetServiceProviderName (void) const =0 |
Gets the service-provider name of the services created by this factory. More... | |
virtual IRscService::Ptr | CreateServiceImpl (const char *providerName, IRscAuthorizator *pAuthorizator)=0 |
Creates a service implementation instance. More... | |
virtual IRscServiceStub::Ptr | CreateServiceStub (SerializationKind kind, IRscService::Ptr pService)=0 |
This operation creates a service stub of various serialization kinds, e.g. SerializationKind::Rsc or SerializationKind::JRsc. More... | |
Interface for service factory classes to create instances of the service implementation, service stubs or service security stub, respectively.
This interface is not intended for direct use, but required by RscGenerator to implement services.
|
defaultnoexcept |
The default move constructor.
arg | The argument to move. |
|
pure virtual |
Creates a service implementation instance.
providerName | The service-provider name of the service implementation to create. |
pAuthorizator | The authorizator to use for authorization of the service calls. |
Implemented in Arp::Base::Rsc::Commons::Services::RscServiceFactoryBase.
|
pure virtual |
This operation creates a service stub of various serialization kinds, e.g. SerializationKind::Rsc or SerializationKind::JRsc.
kind | The serialization kind, i.e. the remote technology supported by the stub. |
pService | The service implementation instance. |
Implemented in Arp::Base::Rsc::Commons::Services::RscServiceFactoryBase.
|
pure virtual |
Gets the service-provider name of the services created by this factory.
Implemented in Arp::Base::Rsc::Commons::Services::RscComponentServiceFactoryBase< TDerived >, and Arp::Base::Rsc::Commons::Services::RscServiceFactoryBase.
|
pure virtual |
Determines if the services of this factory shall be authorized by security.
true
if this service is public and requires security, otherwise false
.Implemented in Arp::Base::Rsc::Commons::Services::RscComponentServiceFactoryBase< TDerived >, and Arp::Base::Rsc::Commons::Services::RscServiceFactoryBase.
|
defaultnoexcept |
The default move-assignment operator.
arg | The argument to move. |