diff options
Diffstat (limited to 'TAO/DevGuideExamples/PortableInterceptors/PICurrent_NameService/ServerInitializer.cpp')
-rw-r--r-- | TAO/DevGuideExamples/PortableInterceptors/PICurrent_NameService/ServerInitializer.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/TAO/DevGuideExamples/PortableInterceptors/PICurrent_NameService/ServerInitializer.cpp b/TAO/DevGuideExamples/PortableInterceptors/PICurrent_NameService/ServerInitializer.cpp new file mode 100644 index 00000000000..4ead54b7746 --- /dev/null +++ b/TAO/DevGuideExamples/PortableInterceptors/PICurrent_NameService/ServerInitializer.cpp @@ -0,0 +1,24 @@ +#include "ServerInitializer.h" +#include "ServerInterceptor.h" + +ServerInitializer::ServerInitializer () +{ +} + +void +ServerInitializer::pre_init ( + PortableInterceptor::ORBInitInfo_ptr) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ +} + +void +ServerInitializer::post_init ( + PortableInterceptor::ORBInitInfo_ptr info) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + // Create and register the request interceptors. + PortableInterceptor::ServerRequestInterceptor_var si = + new ServerInterceptor(); + info->add_server_request_interceptor (si.in()); +} |