org.apache.camel
Annotation Type FallbackConverter


@Retention(value=RUNTIME)
@Documented
@Target(value={TYPE,METHOD})
public @interface FallbackConverter

An annotation used to mark methods to indicate code capable of being a fallback converter which are then auto-discovered using the Type Conversion Support.

The difference between a regular @Converter and a @FallbackConverter is that the fallback is resolved at last if no regular converter could be found. Also the method signature is scoped to be generic to allow handling a broader range of types trying to be converted. The fallback converter can just return null if it can not handle the types to convert from/to.

Version:
$Revision: 19138 $
See Also:
GenericFileConverter for an example.

Optional Element Summary
 boolean canPromote
          Whether or not this fallback converter can be promoted to a first class type converter.
 

canPromote

public abstract boolean canPromote
Whether or not this fallback converter can be promoted to a first class type converter.

Default:
false


Apache CAMEL