📄 serverstubinterceptor.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::Server interface. **/public class ServerStubInterceptor extends org.omg.CORBA.portable.ObjectImpl implements Server, org.objectweb.openccm.Containers.Interceptor{ // ================================================================== // // Internal State. // // =================================================================== /** ** Reference to the delegate object. **/ private ServerOperations _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_provide_the_service = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_subscribe_to_consumers = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_unsubscribe_to_consumers = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_name = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_set_name = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_component_def = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_ccm_home = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_primary_key = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_configuration_complete = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_remove = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_ports = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_provide_facet = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_facets = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_named_facets = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_same_component = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_connect = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_disconnect = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_connections = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_receptacles = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_named_receptacles = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_consumer = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_subscribe = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_unsubscribe = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_connect_consumer = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_disconnect_consumer = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_consumers = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_named_consumers = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_emitters = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_named_emitters = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_all_publishers = null; private org.objectweb.openccm.Containers.CallCoordinator _cc_get_named_publishers = null; // ================================================================== // // Constructor. // // ================================================================== /** ** The default constructor. **/ public ServerStubInterceptor() { _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 = (ServerOperations)executor; } // ================================================================== // // Public methods for the ServerOperations interface. // // ================================================================== // // IDL:ccm.objectweb.org/demo3/Server/provide_the_service:1.0 // /** ** Implementation of the ::demo3::Server::provide_the_service operation. **/ public org.objectweb.ccm.demo3.Services provide_the_service() { if (_cc_provide_the_service==null) _cc_provide_the_service = _call_context().get_call_coordinator("provide_the_service"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("provide_the_service"); _cc_provide_the_service.preinvoke(ctx); try { return _delegate.provide_the_service(); } finally { _cc_provide_the_service.postinvoke(ctx); } } // // IDL:ccm.objectweb.org/demo3/Server/subscribe_to_consumers:1.0 // /** ** Implementation of the ::demo3::Server::subscribe_to_consumers operation. **/ public org.omg.Components.Cookie subscribe_to_consumers(org.objectweb.ccm.demo3.TextEventConsumer consumer) throws org.omg.Components.ExceededConnectionLimit { if (_cc_subscribe_to_consumers==null) _cc_subscribe_to_consumers = _call_context().get_call_coordinator("subscribe_to_consumers"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("subscribe_to_consumers"); _cc_subscribe_to_consumers.preinvoke(ctx); try { return _delegate.subscribe_to_consumers(consumer); } finally { _cc_subscribe_to_consumers.postinvoke(ctx); } } // // IDL:ccm.objectweb.org/demo3/Server/unsubscribe_to_consumers:1.0 // /** ** Implementation of the ::demo3::Server::unsubscribe_to_consumers operation. **/ public org.objectweb.ccm.demo3.TextEventConsumer unsubscribe_to_consumers(org.omg.Components.Cookie ck) throws org.omg.Components.InvalidConnection { if (_cc_unsubscribe_to_consumers==null) _cc_unsubscribe_to_consumers = _call_context().get_call_coordinator("unsubscribe_to_consumers"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("unsubscribe_to_consumers"); _cc_unsubscribe_to_consumers.preinvoke(ctx); try { return _delegate.unsubscribe_to_consumers(ck); } finally { _cc_unsubscribe_to_consumers.postinvoke(ctx); } } // // IDL:ccm.objectweb.org/demo3/NamedComponent/name:1.0 // /** ** Implementation of the ::demo3::NamedComponent::name attribute as accessor operation. **/ public java.lang.String name() { if (_cc_get_name==null) _cc_get_name = _call_context().get_call_coordinator("name"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("name"); _cc_get_name.preinvoke(ctx); try { return _delegate.name(); } finally { _cc_get_name.postinvoke(ctx); } } /** ** Implementation of the ::demo3::NamedComponent::name attribute as mutator operation. **/ public void name(java.lang.String val) { if (_cc_set_name==null) _cc_set_name = _call_context().get_call_coordinator("name"); org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("name"); _cc_set_name.preinvoke(ctx); try { _delegate.name(val); } finally { _cc_set_name.postinvoke(ctx); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -