Interface TypeConverterLoader
public interface TypeConverterLoader
Pluggable strategy for discovering and loading
instances into a
invalid reference
TypeConverter
TypeConverterRegistry
during CamelContext startup.
Camel ships a default implementation that reads converter class names from
META-INF/services/org/apache/camel/TypeConverter resource files on the classpath, a convention that component
modules use to register their converters automatically without explicit wiring. Additional loaders can be supplied to
support alternative discovery mechanisms such as loading converters from a Spring ApplicationContext or an
OSGi service registry.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidload(TypeConverterRegistry registry) A pluggable strategy to load type converters into a registry from some kind of mechanism
-
Method Details
-
load
A pluggable strategy to load type converters into a registry from some kind of mechanism- Parameters:
registry- the registry to load the type converters into- Throws:
TypeConverterLoaderException- if the type converters could not be loaded
-