Interface DataFormatResolver
public interface DataFormatResolver
SPI strategy for resolving a
DataFormat implementation by name.
The default implementation first checks the Camel Registry for a bean registered under the data format name,
then falls back to classpath service files under META-INF/services/org/apache/camel/dataformat/. Each call to
createDataFormat(String, org.apache.camel.CamelContext) returns a fresh, non-shared instance because data
formats carry per-invocation state. Custom resolvers can alias format names, wrap the resolved instance with
decorators, or source formats from a non-classpath registry.
See Data Format in the Camel user manual.- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable DataFormatcreateDataFormat(String name, CamelContext context) Creates the given data format given its name.
-
Method Details
-
createDataFormat
Creates the given data format given its name.- Parameters:
name- the name of the data format factory to lookup inRegistryor createcontext- the camel context- Returns:
- the data format or null if not possible to resolve
-