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
public class TypeConvertersLoader extends AnnotationTypeConverterLoader
A type converter loader, that only supports scanning aTypeConverters
class for methods that has been annotated withConverter
.
-
-
Field Summary
-
Fields inherited from class org.apache.camel.impl.converter.AnnotationTypeConverterLoader
META_INF_SERVICES, resolver, visitedClasses, visitedURIs
-
-
Constructor Summary
Constructors Constructor Description TypeConvertersLoader(org.apache.camel.TypeConverters typeConverters)
Creates the loader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]
findPackageNames()
Finds the names of the packages to search for on the classpath looking for text files on the classpath at theAnnotationTypeConverterLoader.META_INF_SERVICES
location.-
Methods inherited from class org.apache.camel.impl.converter.AnnotationTypeConverterLoader
acceptClass, filterPackageNamesOnly, filterUnwantedPackage, findPackages, isValidConverterMethod, isValidFallbackConverterMethod, load, loadConverterMethods, registerFallbackTypeConverter, registerTypeConverter
-
-
-
-
Method Detail
-
findPackageNames
protected String[] findPackageNames() throws IOException
Description copied from class:AnnotationTypeConverterLoader
Finds the names of the packages to search for on the classpath looking for text files on the classpath at theAnnotationTypeConverterLoader.META_INF_SERVICES
location.- Overrides:
findPackageNames
in classAnnotationTypeConverterLoader
- Returns:
- a collection of packages to search for
- Throws:
IOException
- is thrown for IO related errors
-
-