summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ServiceDeployer.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-07-25 03:31:06 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-07-25 03:31:06 +0000
commit7b2b43a71525019de911b5a42024d07da89a0320 (patch)
treefb303946b16d6f6ddd9d199edf7a6ba5af66f675 /cpp/src/IcePack/ServiceDeployer.cpp
parentcommenbts (diff)
downloadice-7b2b43a71525019de911b5a42024d07da89a0320.tar.bz2
ice-7b2b43a71525019de911b5a42024d07da89a0320.tar.xz
ice-7b2b43a71525019de911b5a42024d07da89a0320.zip
Added targets and application descriptors.
Diffstat (limited to 'cpp/src/IcePack/ServiceDeployer.cpp')
-rw-r--r--cpp/src/IcePack/ServiceDeployer.cpp25
1 files changed, 8 insertions, 17 deletions
diff --git a/cpp/src/IcePack/ServiceDeployer.cpp b/cpp/src/IcePack/ServiceDeployer.cpp
index 6c39de8f07d..3a8bdb7f291 100644
--- a/cpp/src/IcePack/ServiceDeployer.cpp
+++ b/cpp/src/IcePack/ServiceDeployer.cpp
@@ -25,8 +25,6 @@ public:
ServiceDeployHandler(ServiceDeployer&);
virtual void startElement(const XMLCh *const name, AttributeList &attrs);
- virtual void endElement(const XMLCh *const name);
- virtual void startDocument();
private:
@@ -41,15 +39,14 @@ IcePack::ServiceDeployHandler::ServiceDeployHandler(ServiceDeployer& deployer) :
{
}
-void
-IcePack::ServiceDeployHandler::startDocument()
-{
-}
-
void
IcePack::ServiceDeployHandler::startElement(const XMLCh *const name, AttributeList &attrs)
{
ComponentDeployHandler::startElement(name, attrs);
+ if(!isCurrentTargetDeployable())
+ {
+ return;
+ }
string str = toString(name);
@@ -82,18 +79,12 @@ IcePack::ServiceDeployHandler::startElement(const XMLCh *const name, AttributeLi
}
}
-void
-IcePack::ServiceDeployHandler::endElement(const XMLCh *const name)
-{
- string str = toString(name);
-
- ComponentDeployHandler::endElement(name);
-}
-
IcePack::ServiceDeployer::ServiceDeployer(const Ice::CommunicatorPtr& communicator,
ServerDeployer& serverDeployer,
- const map<string, string>& variables) :
- ComponentDeployer(communicator),
+ const map<string, string>& variables,
+ const string& componentPath,
+ const vector<string>& targets) :
+ ComponentDeployer(communicator, componentPath, targets),
_serverDeployer(serverDeployer)
{
_variables = variables;