⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 texteventconsumerwrapper.java

📁 直接放在eclipse环境下
💻 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;/** **  Wrapper class for the ::demo3::TextEvent event. **/public class TextEventConsumerWrapper       extends org.omg.CORBA.LocalObject       implements TextEventConsumerOperations{    // ==================================================================    //    // Internal State.    //    // ===================================================================        /**     **  Reference to the wrapped event consumer instance.     **/    private CCM_TextEventConsumer _event_consumer_executor;        // ==================================================================    //    // Constructor.    //    // ===================================================================        /**     **  The default constructor.     **     **  @param comp The wrapped monolithic executor instance.     **/    public    TextEventConsumerWrapper(CCM_TextEventConsumer executor)    {        _event_consumer_executor = executor;    }        // ==================================================================    //    // Internal methods.    //    // ===================================================================        // ==================================================================    //    // Public methods for the ::Components::EventConsumerBase interface.    //    // ===================================================================        //    //  IDL:omg.org/Components/EventConsumerBase/push_event:1.0    //    /**     **  Consumes a base event.     **/    public void    push_event(org.omg.Components.EventBase event)    throws org.omg.Components.BadEventType    {        TextEvent var = TextEventFactoryHelper.narrow(event);        if (var==null)        {            throw new org.omg.Components.BadEventType("IDL:ccm.objectweb.org/demo3/TextEvent:1.0");        }                push_TextEvent(var);    }        // ==================================================================    //    // Public methods for the TextEventOperations interface.    //    // ==================================================================        //    //  IDL:ccm.objectweb.org/demo3/TextEventConsumer/push_TextEvent:1.0    //    /**     **  Implementation of the ::demo3::TextEventConsumer::push_TextEvent wrapped operation.     **/    public void    push_TextEvent(org.objectweb.ccm.demo3.TextEvent the_textevent)    {        _event_consumer_executor.push(TextEventFactoryHelper.narrow(the_textevent));    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -