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

📄 consumerhomeccm.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 class for the ::demo3::ConsumerHome home. **/public class ConsumerHomeCCM       extends org.objectweb.openccm.Components.CCMHomeImpl       implements ConsumerHomeOperations,                  org.objectweb.openccm.Containers.HomeExecutor{    // ==================================================================    //    // Internal State.    //    // ===================================================================         /**     **  Reference to the home servant.     **/    private org.objectweb.openccm.Containers.HomeServant _servant;         /**     **  Reference to the delegate.     **/    private CCM_ConsumerHome _delegate;         /**     **  The ::CORBA::RepositoryId of the home.     **/    private static java.lang.String _home_uid = "IDL:ccm.objectweb.org/demo3/ConsumerHome:1.0";         /**     **  The ::CORBA::RepositoryId of the component.     **/    private static java.lang.String _component_uid = "IDL:ccm.objectweb.org/demo3/Consumer:1.0";        /**     **  The ::CORBA::RepositoryId of the component ports.     **/    private static java.lang.String[] _port_uids = { "IDL:ccm.objectweb.org/demo3/Consumer/from_servers:1.0" };         // ==================================================================    //    // Constructor.    //    // ===================================================================         /**     **  The default constructor.     **/    public    ConsumerHomeCCM()    {        _servant = null;        _delegate = null;    }         // ==================================================================    //    // Internal methods.    //    // ===================================================================         // ==================================================================    //    // Public methods.    //    // ===================================================================         // ==================================================================    //    // Public methods inherited from the CCMHomeImpl class.    //    // ==================================================================         /**     **  To obtain the home executor.     **/    public org.objectweb.openccm.Containers.HomeExecutor    _the_home_executor()    {        return this;    }         // ==================================================================    //    // Public methods for the HomeExecutorBase interface.    //    // ==================================================================         /**     **     **/    public boolean    _has_primary_key()    {        return false;    }         /**     **     **/    public java.lang.String    _the_home_uid()    {        return _home_uid;    }         /**     **     **/    public java.lang.String    _the_component_uid()    {        return _component_uid;    }         /**     **     **/    public java.lang.String[]    _the_port_uids()    {        return _port_uids;    }         /**     **  To obtain the ::CORBA::RepositoryId of a port's type.     **/    public java.lang.String    _get_port_type_uid(java.lang.String port_uid)    {        if (port_uid.equals("IDL:ccm.objectweb.org/demo3/Consumer/from_servers:1.0"))            return "IDL:ccm.objectweb.org/demo3/TextEventConsumer:1.0";                 throw new org.omg.CORBA.BAD_PARAM();    }         /**     **  To obtain a new instance of the associated component executor.     **/    public org.objectweb.openccm.Containers.ComponentExecutor    _get_component_executor()    {        return new org.objectweb.ccm.demo3.ConsumerCCM();    }         /**     **  To obtain an interceptor for a component facet ar event sink.     **/    public org.objectweb.openccm.Containers.Interceptor    _get_interceptor(java.lang.String uid)    {        if (uid.equals(_the_home_uid()))            return new ConsumerHomeSkeletonInterceptor();        if (uid.equals(_the_component_uid()))            return new ConsumerSkeletonInterceptor();        if (uid.equals("IDL:ccm.objectweb.org/demo3/Consumer/from_servers:1.0"))            return new org.objectweb.ccm.demo3.TextEventConsumerSkeletonInterceptor();                 throw new org.omg.CORBA.BAD_PARAM();    }         /**     **  To obtain an executor locator wrapper.     **/    public org.omg.Components.ExecutorLocator    _get_executor_locator(org.omg.Components.EnterpriseComponent comp)    {        return new ConsumerMonolithicWrapper(comp);    }         /**     **  To obtain a wrapper for an executor.     **  For the moment, only event sinks are wrapped.     **/    public java.lang.Object    _get_executor_wrapper(org.omg.CORBA.Object exe,                          java.lang.String uid)    {        if (uid.equals("IDL:ccm.objectweb.org/demo3/Consumer/from_servers:1.0"))            return new org.objectweb.ccm.demo3.TextEventConsumerWrapper(                (org.objectweb.ccm.demo3.CCM_TextEventConsumer)exe);                                        return (java.lang.Object)exe;    }         /**     **  To obtain the home servant.     **/    public org.objectweb.openccm.Containers.HomeServant    _home_servant()    {        return _servant;    }         /**     **  To set the home servant.     **/    public void    _home_servant(org.objectweb.openccm.Containers.HomeServant servant)    {        _servant = servant;    }         /**     **  To set the delegate object for this skeleton.     **/    public void    _delegate(org.omg.Components.HomeExecutorBase delegate)    {        _delegate = (CCM_ConsumerHome)delegate;    }         /**     **  To get the delegate object for this skeleton.     **/    public org.omg.Components.HomeExecutorBase    _delegate()    {        return _delegate;    }        // ==================================================================    //    // Entrypoint of the container .    //    // ==================================================================         /**     ** Call by the container implementation.     **/    public static org.omg.Components.HomeExecutorBase    _create_home_executor()    {          return new ConsumerHomeCCM();    }         // ==================================================================    //    // Public methods for the HomeExecutor interface.    //    // ==================================================================    /**     **  To obtain a new instance of the component.     **/    public org.omg.Components.EnterpriseComponent    _get_enterprise_component()    throws org.omg.Components.CCMException    {        return _delegate.create();    }                // ==================================================================    //    // Public methods for the ConsumerHomeOperations interface.    // Implicit interface operations part.    //    // ==================================================================    //    //  IDL:ccm.objectweb.org/demo3/ConsumerHomeImplicit/create:1.0    //    /**     **  Implementation of the ::demo3::ConsumerHomeImplicit::create operation.     **/    public org.objectweb.ccm.demo3.Consumer    create()    throws org.omg.Components.CreateFailure    {        return org.objectweb.ccm.demo3.ConsumerHelper.narrow(_create());    }            // ==================================================================    //    // Public methods for the ConsumerHomeOperations interface.    // Explicit interface operations part.    //    // ==================================================================    // ==================================================================    //    // Public methods for the ConsumerHomeOperations interface.    // Business operations part.    //    // ==================================================================}

⌨️ 快捷键说明

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