public class ServiceReferenceListConverter extends Object implements org.osgi.service.blueprint.container.Converter
ServiceReferenceListConverter 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 |
|---|
ServiceReferenceListConverter() |
| 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.Converterpublic Object convert(Object sourceObject, org.osgi.service.blueprint.container.ReifiedType targetType) throws Exception
convert in interface org.osgi.service.blueprint.container.ConverterExceptionThis work is licensed under a Creative Commons Attribution 4.0 International License.