Poco::Remoting

class ProxyFactoryMgr

Library: Remoting
Package: Remoting
Header: Poco/Remoting/ProxyFactoryMgr.h

Description

A ProxyFactoryMgr manages all existing ProxyFactory objects in the system.

Member Summary

Member Functions: create, registerProxyFactory, unregisterProxyFactory

Constructors

ProxyFactoryMgr

ProxyFactoryMgr();

Creates the ProxyFactoryMgr.

Destructor

~ProxyFactoryMgr

~ProxyFactoryMgr();

Destroys the ProxyFactoryMgr.

Member Functions

create

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

create

Proxy * create(
    const Identifiable::TypeId & tid,
    const Remoting::Identifiable::ObjectId & oid
) const;

Creates an unconnected proxy.

registerProxyFactory

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.

unregisterProxyFactory

void unregisterProxyFactory(
    const Identifiable::TypeId & tid
);

Unregisters a proxy factory if one exists, otherwise the unregister is ignored.