diff options
Diffstat (limited to 'cpp/src/Ice/ObjectAdapterFactory.h')
-rw-r--r-- | cpp/src/Ice/ObjectAdapterFactory.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/cpp/src/Ice/ObjectAdapterFactory.h b/cpp/src/Ice/ObjectAdapterFactory.h new file mode 100644 index 00000000000..d8f9e394ad4 --- /dev/null +++ b/cpp/src/Ice/ObjectAdapterFactory.h @@ -0,0 +1,46 @@ +// ********************************************************************** +// +// Copyright (c) 2002 +// MutableRealms, Inc. +// Huntsville, AL, USA +// +// All Rights Reserved +// +// ********************************************************************** + +#ifndef ICE_OBJECT_ADAPTER_FACTORY_H +#define ICE_OBJECT_ADAPTER_FACTORY_H + +#include <Ice/ObjectAdapterFactoryF.h> +#include <Ice/InstanceF.h> +#include <Ice/ObjectAdapterF.h> +#include <Ice/ProxyF.h> +#include <Ice/ObjectF.h> +#include <Ice/Shared.h> +#include <map> + +namespace IceInternal +{ + +class ObjectAdapterFactory : public Shared, public JTCMutex +{ +public: + + void shutdown(); + ::Ice::ObjectAdapterPtr createObjectAdapter(const std::string&, + const std::string&); + ::Ice::ObjectPtr proxyToObject(const ::Ice::ObjectPrx&); + +private: + + ObjectAdapterFactory(const InstancePtr&); + void destroy(); + friend class Instance; + + InstancePtr _instance; + std::map<std::string, ::Ice::ObjectAdapterPtr> _adapters; +}; + +} + +#endif |