📄 clienthomestubinterceptor.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; /** ** Stub interceptor class for the ::demo3::ClientHome interface. **/public class ClientHomeStubInterceptor extends org.omg.CORBA.portable.ObjectImpl implements ClientHome, org.objectweb.openccm.Containers.Interceptor{ // ================================================================== // // Internal State. // // =================================================================== /** ** Reference to the delegate object. **/ private ClientHomeOperations _delegate; /** ** Reference to the call context. **/ private org.objectweb.openccm.Containers.CallContext _context; /** ** **/ private java.lang.String[] ids_ = {}; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_component_def = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_home_def = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_remove_component = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_remove_home = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_components = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_container = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_create = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_create_component = null; // ================================================================== // // Constructor. // // ================================================================== /** ** The default constructor. **/ public ClientHomeStubInterceptor() { _delegate = null; _context = null; } // ================================================================== // // Internal methods. // // ================================================================= // ================================================================== // // Public methods inherited from the ObjectImpl class. // // ================================================================== /** ** **/ public java.lang.String[] _ids() { return ids_; } // ================================================================== // // 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 = (ClientHomeOperations)executor; } // ================================================================== // // Public methods for the ClientHomeOperations interface. // // ================================================================== // // IDL:omg.org/Components/CCMHome/get_component_def:1.0 // /** ** Implementation of the ::Components::CCMHome::get_component_def operation. **/ public org.omg.CORBA.IRObject get_component_def() { if (_cc_get_component_def==null) _cc_get_component_def = _call_context().get_call_coordinator("get_component_def"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("get_component_def"); _cc_get_component_def.preinvoke(ctx); try { return _delegate.get_component_def(); } finally { _cc_get_component_def.postinvoke(ctx); } } // // IDL:omg.org/Components/CCMHome/get_home_def:1.0 // /** ** Implementation of the ::Components::CCMHome::get_home_def operation. **/ public org.omg.CORBA.IRObject get_home_def() { if (_cc_get_home_def==null) _cc_get_home_def = _call_context().get_call_coordinator("get_home_def"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("get_home_def"); _cc_get_home_def.preinvoke(ctx); try { return _delegate.get_home_def(); } finally { _cc_get_home_def.postinvoke(ctx); } } // // IDL:omg.org/Components/CCMHome/remove_component:1.0 // /** ** Implementation of the ::Components::CCMHome::remove_component operation. **/ public void remove_component(org.omg.Components.CCMObject comp) throws org.omg.Components.RemoveFailure { if (_cc_remove_component==null) _cc_remove_component = _call_context().get_call_coordinator("remove_component"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("remove_component"); _cc_remove_component.preinvoke(ctx); try { _delegate.remove_component(comp); } finally { _cc_remove_component.postinvoke(ctx); } } // // IDL:omg.org/Components/CCMHome/remove_home:1.0 // /** ** Implementation of the ::Components::CCMHome::remove_home operation. **/ public void remove_home() throws org.omg.Components.RemoveFailure { if (_cc_remove_home==null) _cc_remove_home = _call_context().get_call_coordinator("remove_home"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("remove_home"); _cc_remove_home.preinvoke(ctx); try { _delegate.remove_home(); } finally { _cc_remove_home.postinvoke(ctx); } } // // IDL:omg.org/Components/CCMHome/get_components:1.0 // /** ** Implementation of the ::Components::CCMHome::get_components operation. **/ public org.omg.Components.CCMObject[] get_components() { if (_cc_get_components==null) _cc_get_components = _call_context().get_call_coordinator("get_components"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("get_components"); _cc_get_components.preinvoke(ctx); try { return _delegate.get_components(); } finally { _cc_get_components.postinvoke(ctx); } } // // IDL:omg.org/Components/CCMHome/get_container:1.0 // /** ** Implementation of the ::Components::CCMHome::get_container operation. **/ public org.omg.Components.Deployment.Container get_container() { if (_cc_get_container==null) _cc_get_container = _call_context().get_call_coordinator("get_container"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("get_container"); _cc_get_container.preinvoke(ctx); try { return _delegate.get_container(); } finally { _cc_get_container.postinvoke(ctx); } } // // IDL:ccm.objectweb.org/demo3/ClientHomeImplicit/create:1.0 // /** ** Implementation of the ::demo3::ClientHomeImplicit::create operation. **/ public org.objectweb.ccm.demo3.Client create() throws org.omg.Components.CreateFailure { if (_cc_create==null) _cc_create = _call_context().get_call_coordinator("create"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("create"); _cc_create.preinvoke(ctx); try { return _delegate.create(); } finally { _cc_create.postinvoke(ctx); } } // // IDL:omg.org/Components/KeylessCCMHome/create_component:1.0 // /** ** Implementation of the ::Components::KeylessCCMHome::create_component operation. **/ public org.omg.Components.CCMObject create_component() throws org.omg.Components.CreateFailure { if (_cc_create_component==null) _cc_create_component = _call_context().get_call_coordinator("create_component"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("create_component"); _cc_create_component.preinvoke(ctx); try { return _delegate.create_component(); } finally { _cc_create_component.postinvoke(ctx); } } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -