Library: Remoting
Package: Remoting
Header: Poco/Remoting/ProxyFactoryMgr.h
A ProxyFactoryMgr manages all existing ProxyFactory objects in the system.
Member Functions: create, registerProxyFactory, unregisterProxyFactory
Creates the ProxyFactoryMgr.
~ProxyFactoryMgr();
Destroys the ProxyFactoryMgr.
Proxy * create(
const Identifiable::TypeId & tid,
const Remoting::Identifiable::ObjectId & oid,
const std::string & protocol,
const std::string & endPoint
) const;
Creates a connected proxy for the given typeId or throws an exception for an unknown type. Only blocks the ProxyFactoryMgr for as short as possible
Proxy * create(
const Identifiable::TypeId & tid,
const Remoting::Identifiable::ObjectId & oid
) const;
Creates an unconnected proxy.
void registerProxyFactory(
const Identifiable::TypeId & tid,
ProxyFactory * pFac
);
Registers a proxy factory under the given typeid if no factory exists yet. Takes ownership of the pointer, ignores registration errors.
void unregisterProxyFactory(
const Identifiable::TypeId & tid
);
Unregisters a proxy factory if one exists, otherwise the unregister is ignored.