public class ListConverter extends Object implements org.osgi.service.blueprint.container.Converter
SortedServiceList
objects to pass through for List
implementations. This was originally intended to allow plugins to be
automatically sorted in the list. Without this converter, blueprint will copy the list and lose
the reference.Constructor and Description |
---|
ListConverter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Object sourceObject,
org.osgi.service.blueprint.container.ReifiedType targetType) |
Object |
convert(Object sourceObject,
org.osgi.service.blueprint.container.ReifiedType targetType)
Converts (casts) the sourceObject to a SortedServiceList.
|
public boolean canConvert(Object sourceObject, org.osgi.service.blueprint.container.ReifiedType targetType)
canConvert
in interface org.osgi.service.blueprint.container.Converter
public Object convert(Object sourceObject, org.osgi.service.blueprint.container.ReifiedType targetType) throws Exception
convert
in interface org.osgi.service.blueprint.container.Converter
Exception
This work is licensed under a Creative Commons Attribution 4.0 International License.