summaryrefslogtreecommitdiff
path: root/ACEXML/compass/ComponentServer.cpp
diff options
context:
space:
mode:
authorkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-05-12 15:37:21 +0000
committerkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-05-12 15:37:21 +0000
commit7c78f8ab9e51c790aa2eb48ef20ac15edef353d4 (patch)
treeab18d5272b5fa06ce924516bfcf4fa2e4d8476b5 /ACEXML/compass/ComponentServer.cpp
parentaef782d30e2a570e8dd831e1ae5c3e3e60d11b0f (diff)
downloadATCD-Validator.tar.gz
ChangeLogTag: Fri Jan 24 20:28:22 2003 Krishnakumar B <kitty@insanely.long.id.truncated>Validator
Diffstat (limited to 'ACEXML/compass/ComponentServer.cpp')
-rw-r--r--ACEXML/compass/ComponentServer.cpp59
1 files changed, 0 insertions, 59 deletions
diff --git a/ACEXML/compass/ComponentServer.cpp b/ACEXML/compass/ComponentServer.cpp
deleted file mode 100644
index 0909d8be5ba..00000000000
--- a/ACEXML/compass/ComponentServer.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-// $Id$
-
-#if defined (__ACE_INLINE__)
-#include "ComponentServer.inl"
-#endif /* __ACE_INLINE__ */
-
-#include "ACEXML/compass/ComponentServer.h"
-
-using namespace Deployment;
-
-ComponentServer::ComponentServer(ConfigValues* config)
- : containers_ (0),
- config_ (config),
- activator_ (SERVER_ACTIVATOR::instance())
-{}
-
-ComponentServer::~ComponentServer()
-{
- this->remove();
-}
-
-Container*
-ComponentServer::create_container (ConfigValues* config)
- ACE_THROW_SPEC ((CreateFailure, InvalidConfiguration))
-{
- Container* ctr = 0;
- ACE_NEW_RETURN (ctr, Container (config), 0);
- if (this->containers_->insert (ctr) != 0)
- ACE_THROW (CreateFailure());
- return ctr;
-}
-
-void
-ComponentServer::remove_container (Container* cref)
- ACE_THROW_SPEC ((RemoveFailure));
-{
- if (this->containers_->remove (cref) != 0)
- ACE_THROW (RemoveFailure());
- delete cref;
-}
-
-void
-ComponentServer::remove()
- ACE_THROW_SPEC ((RemoveFailure))
-{
- Container** entry = 0;
- for (Containers::iterator iter (*this->containers_);
- iter.next (entry) != 0;
- iter->advance())
- delete *entry;
-
- ConfigValues** value = 0;
- for (ConfigValues::iterator iter (*this->config_);
- iter.next (value) != 0;
- iter->advance())
- delete *value;
-
- this->activator_ = 0;
-}