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

📄 servicesskeletoninterceptor.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; /** **  Skeleton interceptor class for the ::demo3::Services interface. **/public class ServicesSkeletonInterceptor       extends ServicesPOA       implements org.objectweb.openccm.Containers.Interceptor{    // ==================================================================    //    // Internal State.    //    // ===================================================================         /**     **  Reference to the delegate object.     **/    private ServicesOperations _delegate;         /**     **  Reference to the call context.     **/    private org.objectweb.openccm.Containers.CallContext _context;         private org.objectweb.openccm.Containers.CallCoordinator _cc_display = null;        // ==================================================================    //    // Constructor.    //    // ==================================================================         /**     **  The default constructor.     **/    public    ServicesSkeletonInterceptor()    {        _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 = (ServicesOperations)executor;    }         // ==================================================================    //    // Public methods for the ServicesOperations interface.    //    // ==================================================================         //    //  IDL:ccm.objectweb.org/demo3/Services/display:1.0    //    /**     **  Implementation of the ::demo3::Services::display operation.     **/    public void    display(java.lang.String text)    {        if (_cc_display==null)            _cc_display = _call_context().get_call_coordinator("display");                 org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("display");        _cc_display.preinvoke(ctx);        try        {            _delegate.display(text);        }        finally        {            _cc_display.postinvoke(ctx);        }    }    }

⌨️ 快捷键说明

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