org.apache.aries.blueprint.container
Class AggregateConverter
java.lang.Object
org.apache.aries.blueprint.container.AggregateConverter
- All Implemented Interfaces:
- org.osgi.service.blueprint.container.Converter
public class AggregateConverter
- extends Object
- implements org.osgi.service.blueprint.container.Converter
Implementation of the Converter.
This object contains all the registered Converters which can be registered
by using registerConverter(Converter)
and unregistered using unregisterConverter(Converter).
Each BlueprintContainer has its own AggregateConverter
used to register converters defined by the related blueprint bundle.
- Version:
- $Rev: 1240203 $, $Date: 2012-02-03 14:56:58 +0000 (Fri, 03 Feb 2012) $
|
Nested Class Summary |
static interface |
AggregateConverter.Convertible
Objects implementing this interface will bypass the default conversion rules
and be called directly to transform into the expected type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregateConverter
public AggregateConverter(ExtendedBlueprintContainer blueprintContainer)
registerConverter
public void registerConverter(org.osgi.service.blueprint.container.Converter converter)
unregisterConverter
public void unregisterConverter(org.osgi.service.blueprint.container.Converter converter)
canConvert
public boolean canConvert(Object fromValue,
org.osgi.service.blueprint.container.ReifiedType toType)
- Specified by:
canConvert in interface org.osgi.service.blueprint.container.Converter
convert
public Object convert(Object fromValue,
org.osgi.service.blueprint.container.ReifiedType type)
throws Exception
- Specified by:
convert in interface org.osgi.service.blueprint.container.Converter
- Throws:
Exception
convertToNumber
public Object convertToNumber(Number value,
Class toType)
throws Exception
- Throws:
Exception
convertFromString
public Object convertFromString(String value,
Class toType,
Object loader)
throws Exception
- Throws:
Exception
isAssignable
public static boolean isAssignable(Object source,
org.osgi.service.blueprint.container.ReifiedType target)
convert
public Object convert(Object source,
Type target)
throws Exception
- Throws:
Exception
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.