Java 类org.apache.camel.TypeConverters 实例源码

项目:Camel    文件:BaseTypeConverterRegistry.java   
@Override
public void addTypeConverters(TypeConverters typeConverters) {
    log.trace("Adding type converters: {}", typeConverters);
    try {
        // scan the class for @Converter and load them into this registry
        TypeConvertersLoader loader = new TypeConvertersLoader(typeConverters);
        loader.load(this);
    } catch (TypeConverterLoaderException e) {
        throw ObjectHelper.wrapRuntimeCamelException(e);
    }
}
项目:Camel    文件:OsgiTypeConverter.java   
public void addTypeConverters(TypeConverters typeConverters) {
    getDelegate().addTypeConverters(typeConverters);
}
项目:Camel    文件:MockTypeConverterRegistry.java   
public void addTypeConverters(TypeConverters typeConverters) {
    // noop
}
项目:Camel    文件:TypeConverterRegistry.java   
/**
 * Registers all the type converters from the class, each converter must be implemented as a method and annotated with {@link org.apache.camel.Converter}.
 *
 * @param typeConverters class which implements the type converters
 */
void addTypeConverters(TypeConverters typeConverters);
项目:Camel    文件:TypeConvertersLoader.java   
/**
 * Creates the loader
 *
 * @param typeConverters  The implementation that has the type converters
 */
public TypeConvertersLoader(TypeConverters typeConverters) {
    super(new TypeConvertersPackageScanClassResolver(typeConverters.getClass()));
    this.typeConverters = typeConverters;
}