📄 texteventconsumerskeletoninterceptor.java
字号:
/*====================================================================Tnis file was produced by the OpenCCM ir3_java generator.OpenCCM: The Open CORBA Component Model PlatformCopyright (C) 2000-2002 USTL - LIFL - GOALContact: openccm-team@objectweb.orgThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USAInitial developer(s): Philippe Merle, Mathieu Vadet.Contributor(s): ______________________________________.====================================================================*/package org.objectweb.ccm.demo3; /** ** Skeleton interceptor class for the ::demo3::TextEventConsumer interface. **/public class TextEventConsumerSkeletonInterceptor extends TextEventConsumerPOA implements org.objectweb.openccm.Containers.Interceptor{ // ================================================================== // // Internal State. // // =================================================================== /** ** Reference to the delegate object. **/ private TextEventConsumerOperations _delegate; /** ** Reference to the call context. **/ private org.objectweb.openccm.Containers.CallContext _context; private org.objectweb.openccm.Containers.CallCoordinator _cc_push_TextEvent = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_push_event = null; // ================================================================== // // Constructor. // // ================================================================== /** ** The default constructor. **/ public TextEventConsumerSkeletonInterceptor() { _delegate = null; _context = null; } // ================================================================== // // Internal methods. // // ================================================================= // ================================================================== // // Public methods for the Interceptor interface. // // ================================================================== /** ** To set the call context of the interceptor. **/ public void _call_context(org.objectweb.openccm.Containers.CallContext context) { _context = context; } /** ** To get the call context of the interceptor. **/ public org.objectweb.openccm.Containers.CallContext _call_context() { return _context; } /** ** To get the delegate object. **/ public java.lang.Object _delegate() { return _delegate; } /** ** To set the delegate object. **/ public void _delegate(java.lang.Object executor) { _delegate = (TextEventConsumerOperations)executor; } // ================================================================== // // Public methods for the TextEventConsumerOperations interface. // // ================================================================== // // IDL:ccm.objectweb.org/demo3/TextEventConsumer/push_TextEvent:1.0 // /** ** Implementation of the ::demo3::TextEventConsumer::push_TextEvent operation. **/ public void push_TextEvent(org.objectweb.ccm.demo3.TextEvent the_textevent) { if (_cc_push_TextEvent==null) _cc_push_TextEvent = _call_context().get_call_coordinator("push_TextEvent"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("push_TextEvent"); _cc_push_TextEvent.preinvoke(ctx); try { _delegate.push_TextEvent(the_textevent); } finally { _cc_push_TextEvent.postinvoke(ctx); } } // // IDL:omg.org/Components/EventConsumerBase/push_event:1.0 // /** ** Implementation of the ::Components::EventConsumerBase::push_event operation. **/ public void push_event(org.omg.Components.EventBase evt) throws org.omg.Components.BadEventType { if (_cc_push_event==null) _cc_push_event = _call_context().get_call_coordinator("push_event"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("push_event"); _cc_push_event.preinvoke(ctx); try { _delegate.push_event(evt); } finally { _cc_push_event.postinvoke(ctx); } } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -