OSGi™ Service Platform
Release 4 Version 4.1

org.osgi.service.component
Interface ComponentInstance


public interface ComponentInstance

A ComponentInstance encapsulates a component instance of an activated component configuration. ComponentInstances are created whenever a component configuration is activated.

ComponentInstances are never reused. A new ComponentInstance object will be created when the component configuration is activated again.


Method Summary
 void dispose()
          Dispose of the component configuration for this component instance.
 java.lang.Object getInstance()
          Returns the component instance of the activated component configuration.
 

Method Detail

dispose

public void dispose()
Dispose of the component configuration for this component instance. The component configuration will be deactivated. If the component configuration has already been deactivated, this method does nothing.


getInstance

public java.lang.Object getInstance()
Returns the component instance of the activated component configuration.

Returns:
The component instance or null if the component configuration has been deactivated.

OSGi™ Service Platform
Release 4 Version 4.1

Copyright © OSGi Alliance (2000, 2007). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0