summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannel_i.cpp
diff options
context:
space:
mode:
authorpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-12-13 10:37:39 +0000
committerpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-12-13 10:37:39 +0000
commitf00367f6f4873fc8076c9b54ec683171cf2db59f (patch)
treebeff4652bc35d6429e5af770acfc30e9e3ec312c /TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannel_i.cpp
parent9ba24b9e784071846fba99eabe3b95ca11e79bee (diff)
downloadATCD-f00367f6f4873fc8076c9b54ec683171cf2db59f.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannel_i.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannel_i.cpp21
1 files changed, 15 insertions, 6 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannel_i.cpp b/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannel_i.cpp
index bd39951ac7d..b363fb78e83 100644
--- a/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannel_i.cpp
+++ b/TAO/orbsvcs/orbsvcs/Notify/Notify_EventChannel_i.cpp
@@ -4,6 +4,7 @@
#include "orbsvcs/orbsvcs/Notify/Notify_SupplierAdmin_i.h"
#include "orbsvcs/orbsvcs/Notify/Notify_ConsumerAdmin_i.h"
#include "orbsvcs/orbsvcs/Notify/Notify_EventChannelFactory_i.h"
+#include "orbsvcs/orbsvcs/Notify/Notify_FilterFactory_i.h"
// Implementation skeleton constructor
TAO_Notify_EventChannel_i::TAO_Notify_EventChannel_i (TAO_Notify_EventChannelFactory_i& my_factory)
@@ -20,7 +21,17 @@ void
TAO_Notify_EventChannel_i::init (CORBA::Environment &ACE_TRY_ENV)
{
// TODO: init data members
- dispatcher_ = auto_ptr<TAO_Notify_Dispatcher>(TAO_Notify_Dispatcher::create (ACE_TRY_ENV));
+ dispatcher_ =
+ auto_ptr<TAO_Notify_Dispatcher>(TAO_Notify_Dispatcher::create (ACE_TRY_ENV));
+ ACE_CHECK;
+
+ TAO_Notify_FilterFactory_i* filter_factory_i;
+ ACE_NEW_THROW_EX (filter_factory_i,
+ TAO_Notify_FilterFactory_i (),
+ CORBA::NO_MEMORY ());
+
+ this->filter_factory_ =
+ filter_factory_i->get_ref (ACE_TRY_ENV);
ACE_CHECK;
}
@@ -68,15 +79,13 @@ CosNotifyChannelAdmin::SupplierAdmin_ptr TAO_Notify_EventChannel_i::default_supp
CosNotifyFilter::FilterFactory_ptr
TAO_Notify_EventChannel_i::default_filter_factory (
- CORBA::Environment &ACE_TRY_ENV
- )
+ CORBA::Environment &ACE_TRY_ENV
+ )
ACE_THROW_SPEC ((
CORBA::SystemException
))
-
{
- //Add your implementation here
- return 0;
+ return CosNotifyFilter::FilterFactory::_duplicate (filter_factory_.in ());
}
CosNotifyChannelAdmin::ConsumerAdmin_ptr