Package org.apache.camel.impl.converter
Class TypeConvertersLoader
java.lang.Object
org.apache.camel.impl.converter.AnnotationTypeConverterLoader
org.apache.camel.impl.converter.TypeConvertersLoader
- All Implemented Interfaces:
org.apache.camel.spi.TypeConverterLoader
A type converter loader, that only supports scanning a
TypeConverters class for
methods that has been annotated with Converter.-
Field Summary
Fields inherited from class org.apache.camel.impl.converter.AnnotationTypeConverterLoader
META_INF_SERVICES, resolver, visitedClasses, visitedURIs -
Constructor Summary
ConstructorsConstructorDescriptionTypeConvertersLoader(Class<?> clazz) Creates the loaderTypeConvertersLoader(Object typeConverters) Creates the loader -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]Finds the names of the packages to search for on the classpath looking for text files on the classpath at theAnnotationTypeConverterLoader.META_INF_SERVICESlocation.Methods inherited from class org.apache.camel.impl.converter.AnnotationTypeConverterLoader
acceptClass, filterPackageNamesOnly, filterUnwantedPackage, findPackages, isValidConverterMethod, isValidFallbackConverterMethod, load, loadConverterMethods, registerFallbackTypeConverter, registerTypeConverter
-
Constructor Details
-
TypeConvertersLoader
Creates the loader- Parameters:
typeConverters- The implementation that has the type converters
-
TypeConvertersLoader
Creates the loader- Parameters:
clazz- the class with the @Converter annotation and converter methods
-
-
Method Details
-
findPackageNames
Description copied from class:AnnotationTypeConverterLoaderFinds the names of the packages to search for on the classpath looking for text files on the classpath at theAnnotationTypeConverterLoader.META_INF_SERVICESlocation.- Overrides:
findPackageNamesin classAnnotationTypeConverterLoader- Returns:
- a collection of packages to search for
- Throws:
IOException- is thrown for IO related errors
-