Top Description Methods
org.osgi.util.converter

public Interface Converter

Known Direct Subinterfaces
org.osgi.util.converter.InternalConverter
Annotations
@ProviderType
Imports
org.osgi.annotation.versioning.ProviderType

The Converter service is used to start a conversion. The service is obtained from the service registry. The conversion is then completed via the Converting interface that has methods to specify the target type.
Author
$Id: a824136ef93c14f4d195dd7f23ce1270511155dd $

Method Summary

Modifier and TypeMethod and Description
public Converting

Returns:

A Converting object to complete the conversion.
convert
(Object
The object that should be converted.
obj
)

Start a conversion for the given object.

public Functioning

Returns:

A Functioning object to complete the definition.
function
()

Start defining a function that can perform given conversions.

public ConverterBuilder

Returns:

A new Converter Builder.
newConverterBuilder
()

Obtain a builder to create a modified converter based on this converter.

Method Detail

convertback to summary
public Converting convert(Object obj)

Start a conversion for the given object.

Parameters
obj:Object

The object that should be converted.

Returns:Converting

A Converting object to complete the conversion.

functionback to summary
public Functioning function()

Start defining a function that can perform given conversions.

Returns:Functioning

A Functioning object to complete the definition.

newConverterBuilderback to summary
public ConverterBuilder newConverterBuilder()

Obtain a builder to create a modified converter based on this converter. For more details see the ConverterBuilder interface.

Returns:ConverterBuilder

A new Converter Builder.