public class AggregateConverter extends Object implements org.osgi.service.blueprint.container.Converter
registerConverter(Converter)
and unregistered using unregisterConverter(Converter).
Each BlueprintContainer has its own AggregateConverter
used to register converters defined by the related blueprint bundle.| Modifier and Type | Class and Description |
|---|---|
static interface |
AggregateConverter.Convertible
Objects implementing this interface will bypass the default conversion rules
and be called directly to transform into the expected type.
|
| Constructor and Description |
|---|
AggregateConverter(ExtendedBlueprintContainer blueprintContainer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Object fromValue,
org.osgi.service.blueprint.container.ReifiedType toType) |
Object |
convert(Object fromValue,
org.osgi.service.blueprint.container.ReifiedType type) |
Object |
convert(Object source,
Type target) |
Object |
convertFromString(String value,
Class toType,
Object loader) |
Object |
convertToNumber(Number value,
Class toType) |
static boolean |
isAssignable(Object source,
org.osgi.service.blueprint.container.ReifiedType target) |
static boolean |
isTypeAssignable(org.osgi.service.blueprint.container.ReifiedType from,
org.osgi.service.blueprint.container.ReifiedType to) |
void |
registerConverter(org.osgi.service.blueprint.container.Converter converter) |
void |
unregisterConverter(org.osgi.service.blueprint.container.Converter converter) |
public AggregateConverter(ExtendedBlueprintContainer blueprintContainer)
public void registerConverter(org.osgi.service.blueprint.container.Converter converter)
public void unregisterConverter(org.osgi.service.blueprint.container.Converter converter)
public boolean canConvert(Object fromValue, org.osgi.service.blueprint.container.ReifiedType toType)
canConvert in interface org.osgi.service.blueprint.container.Converterpublic Object convert(Object fromValue, org.osgi.service.blueprint.container.ReifiedType type) throws Exception
convert in interface org.osgi.service.blueprint.container.ConverterExceptionpublic Object convertToNumber(Number value, Class toType) throws Exception
Exceptionpublic Object convertFromString(String value, Class toType, Object loader) throws Exception
Exceptionpublic static boolean isAssignable(Object source, org.osgi.service.blueprint.container.ReifiedType target)
public static boolean isTypeAssignable(org.osgi.service.blueprint.container.ReifiedType from,
org.osgi.service.blueprint.container.ReifiedType to)
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.