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

📄 servermanagerskeletoninterceptor.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::ServerManager interface. **/public class ServerManagerSkeletonInterceptor       extends ServerManagerPOA       implements org.objectweb.openccm.Containers.Interceptor{    // ==================================================================    //    // Internal State.    //    // ===================================================================         /**     **  Reference to the delegate object.     **/    private ServerManagerOperations _delegate;         /**     **  Reference to the call context.     **/    private org.objectweb.openccm.Containers.CallContext _context;         private org.objectweb.openccm.Containers.CallCoordinator _cc_create_server = null;        private org.objectweb.openccm.Containers.CallCoordinator _cc_find_server = null;        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_find_by_primary_key = null;        private org.objectweb.openccm.Containers.CallCoordinator _cc_remove = null;        private org.objectweb.openccm.Containers.CallCoordinator _cc_get_primary_key = null;        // ==================================================================    //    // Constructor.    //    // ==================================================================         /**     **  The default constructor.     **/    public    ServerManagerSkeletonInterceptor()    {        _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 = (ServerManagerOperations)executor;    }         // ==================================================================    //    // Public methods for the ServerManagerOperations interface.    //    // ==================================================================         //    //  IDL:ccm.objectweb.org/demo3/ServerManagerExplicit/create_server:1.0    //    /**     **  Implementation of the ::demo3::ServerManagerExplicit::create_server operation.     **/    public org.objectweb.ccm.demo3.Server    create_server(java.lang.String name)    throws org.omg.Components.CreateFailure    {        if (_cc_create_server==null)            _cc_create_server = _call_context().get_call_coordinator("create_server");                 org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("create_server");        _cc_create_server.preinvoke(ctx);        try        {            return _delegate.create_server(name);        }        finally        {            _cc_create_server.postinvoke(ctx);        }    }        //    //  IDL:ccm.objectweb.org/demo3/ServerManagerExplicit/find_server:1.0    //    /**     **  Implementation of the ::demo3::ServerManagerExplicit::find_server operation.     **/    public org.objectweb.ccm.demo3.Server    find_server(java.lang.String name)    throws org.omg.Components.FinderFailure    {        if (_cc_find_server==null)            _cc_find_server = _call_context().get_call_coordinator("find_server");                 org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("find_server");        _cc_find_server.preinvoke(ctx);        try        {            return _delegate.find_server(name);        }        finally        {            _cc_find_server.postinvoke(ctx);        }    }        //    //  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/ServerManagerImplicit/create:1.0    //    /**     **  Implementation of the ::demo3::ServerManagerImplicit::create operation.     **/    public org.objectweb.ccm.demo3.Server    create(org.objectweb.ccm.demo3.NamePrimaryKey key)    throws org.omg.Components.DuplicateKeyValue, org.omg.Components.InvalidKey, 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(key);        }        finally        {            _cc_create.postinvoke(ctx);        }    }        //    //  IDL:ccm.objectweb.org/demo3/ServerManagerImplicit/find_by_primary_key:1.0    //    /**     **  Implementation of the ::demo3::ServerManagerImplicit::find_by_primary_key operation.     **/    public org.objectweb.ccm.demo3.Server    find_by_primary_key(org.objectweb.ccm.demo3.NamePrimaryKey key)    throws org.omg.Components.UnknownKeyValue, org.omg.Components.InvalidKey, org.omg.Components.FinderFailure    {        if (_cc_find_by_primary_key==null)            _cc_find_by_primary_key = _call_context().get_call_coordinator("find_by_primary_key");                 org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("find_by_primary_key");        _cc_find_by_primary_key.preinvoke(ctx);        try        {            return _delegate.find_by_primary_key(key);        }        finally        {            _cc_find_by_primary_key.postinvoke(ctx);        }    }        //    //  IDL:ccm.objectweb.org/demo3/ServerManagerImplicit/remove:1.0    //    /**     **  Implementation of the ::demo3::ServerManagerImplicit::remove operation.     **/    public void    remove(org.objectweb.ccm.demo3.NamePrimaryKey key)    throws org.omg.Components.UnknownKeyValue, org.omg.Components.InvalidKey, org.omg.Components.RemoveFailure    {        if (_cc_remove==null)            _cc_remove = _call_context().get_call_coordinator("remove");                 org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("remove");        _cc_remove.preinvoke(ctx);        try        {            _delegate.remove(key);        }        finally        {            _cc_remove.postinvoke(ctx);        }    }        //    //  IDL:ccm.objectweb.org/demo3/ServerManagerImplicit/get_primary_key:1.0    //    /**     **  Implementation of the ::demo3::ServerManagerImplicit::get_primary_key operation.     **/    public org.objectweb.ccm.demo3.NamePrimaryKey    get_primary_key(org.objectweb.ccm.demo3.Server comp)    {        if (_cc_get_primary_key==null)            _cc_get_primary_key = _call_context().get_call_coordinator("get_primary_key");                 org.objectweb.openccm.Containers.CallContext ctx = _call_context().duplicate("get_primary_key");        _cc_get_primary_key.preinvoke(ctx);        try        {            return _delegate.get_primary_key(comp);        }        finally        {            _cc_get_primary_key.postinvoke(ctx);        }    }    }

⌨️ 快捷键说明

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