diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-09-14 19:35:45 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-09-14 19:35:45 +0000 |
commit | d45cba898c0c25f6218260be51b1e4ec321000e7 (patch) | |
tree | 2aac309d72501b6f24b291769888e682379e0c74 /cpp/src/Ice/ReferenceFactory.cpp | |
parent | slice/IceGrid (diff) | |
download | ice-d45cba898c0c25f6218260be51b1e4ec321000e7.tar.bz2 ice-d45cba898c0c25f6218260be51b1e4ec321000e7.tar.xz ice-d45cba898c0c25f6218260be51b1e4ec321000e7.zip |
Fix for bug 282:
- Adding Ice.Default.CollocationOptimization property, default = 1
- Changing the ice_default proxy method to return a proxy having the
default collocation optimization setting, rather than false
- Changing all other calls to ReferenceFactory::create to use the default
setting instead of a hard-coded value
Diffstat (limited to 'cpp/src/Ice/ReferenceFactory.cpp')
-rw-r--r-- | cpp/src/Ice/ReferenceFactory.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/cpp/src/Ice/ReferenceFactory.cpp b/cpp/src/Ice/ReferenceFactory.cpp index 8fa20ba6253..126786c92af 100644 --- a/cpp/src/Ice/ReferenceFactory.cpp +++ b/cpp/src/Ice/ReferenceFactory.cpp @@ -19,6 +19,7 @@ #include <Ice/LoggerUtil.h> #include <Ice/BasicStream.h> #include <Ice/Properties.h> +#include <Ice/DefaultsAndOverrides.h> #include <IceUtil/StringUtil.h> using namespace std; @@ -408,7 +409,8 @@ IceInternal::ReferenceFactory::create(const string& str) if(beg == string::npos) { - return create(ident, _instance->getDefaultContext(), facet, mode, secure, "", routerInfo, locatorInfo, true); + return create(ident, _instance->getDefaultContext(), facet, mode, secure, "", routerInfo, locatorInfo, + _instance->defaultsAndOverrides()->defaultCollocationOptimization); } vector<EndpointIPtr> endpoints; @@ -458,7 +460,8 @@ IceInternal::ReferenceFactory::create(const string& str) } } - return create(ident, _instance->getDefaultContext(), facet, mode, secure, endpoints, routerInfo, true); + return create(ident, _instance->getDefaultContext(), facet, mode, secure, endpoints, routerInfo, + _instance->defaultsAndOverrides()->defaultCollocationOptimization); break; } case '@': @@ -498,7 +501,7 @@ IceInternal::ReferenceFactory::create(const string& str) throw ex; } return create(ident, _instance->getDefaultContext(), facet, mode, secure, adapter, routerInfo, - locatorInfo, true); + locatorInfo, _instance->defaultsAndOverrides()->defaultCollocationOptimization); break; } default: @@ -568,13 +571,14 @@ IceInternal::ReferenceFactory::create(const Identity& ident, BasicStream* s) EndpointIPtr endpoint = _instance->endpointFactoryManager()->read(s); endpoints.push_back(endpoint); } - return create(ident, _instance->getDefaultContext(), facet, mode, secure, endpoints, routerInfo, true); + return create(ident, _instance->getDefaultContext(), facet, mode, secure, endpoints, routerInfo, + _instance->defaultsAndOverrides()->defaultCollocationOptimization); } else { s->read(adapterId); return create(ident, _instance->getDefaultContext(), facet, mode, secure, adapterId, routerInfo, - locatorInfo, true); + locatorInfo, _instance->defaultsAndOverrides()->defaultCollocationOptimization); } } |