@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); } }
public void addTypeConverters(TypeConverters typeConverters) { getDelegate().addTypeConverters(typeConverters); }
public void addTypeConverters(TypeConverters typeConverters) { // noop }
/** * 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);
/** * Creates the loader * * @param typeConverters The implementation that has the type converters */ public TypeConvertersLoader(TypeConverters typeConverters) { super(new TypeConvertersPackageScanClassResolver(typeConverters.getClass())); this.typeConverters = typeConverters; }