Examples of ComponentInstance


Examples of org.osgi.service.component.ComponentInstance

        // enable
        cm.enableInternal();
        //activate immediately
        cm.activateInternal( getTrackingCount().get() );

        ComponentInstance instance;
        if ( getComponentMetadata().isPersistentFactoryComponent() )
        {
            instance = new ModifyComponentInstance<S>(cm);
        }
        else
        {
          instance = cm.getComponentInstance();
          if ( instance == null ||  instance.getInstance() == null )
          {
            // activation failed, clean up component manager
            cm.dispose( ComponentConstants.DEACTIVATION_REASON_DISPOSED );
            throw new ComponentException( "Failed activating component" );
          }
View Full Code Here

Examples of org.osgi.service.component.ComponentInstance

            cm.dispose();           
        }

        public Object getInstance()
        {
            final ComponentInstance componentInstance = cm.getComponentInstance();
            return componentInstance == null? null: componentInstance.getInstance();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.