Top Description Methods
org.osgi.service.component

public Interface ComponentInstance<S>

Annotations
@ProviderType
Type Parameters
<S>
Type of Service
Imports
org.osgi.annotation.versioning.ProviderType

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.

Author
$Id: 306895d0b123fde21f9d82582b0de5858ba1d014 $

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Dispose of the component configuration for this component instance.

public S

Returns:

The component instance or null if the component configuration has been deactivated.
getInstance
()

Returns the component instance of the activated component configuration.

Method Detail

disposeback to summary
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.

getInstanceback to summary
public S getInstance()

Returns the component instance of the activated component configuration.

Returns:S

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