Package org.apache.camel.spi
Interface PropertyConfigurerGetter
- All Known Subinterfaces:
ExtendedPropertyConfigurerGetter
public interface PropertyConfigurerGetter
A marker interface to identify the object as being a configurer which can provide details about the options the
configurer supports.
This is used in Camel to have fast property configuration of Camel components & endpoints, and for EIP patterns as
well.
-
Method Summary
Modifier and TypeMethodDescriptiondefault String[]
Gets the names of the autowired options.default Object
getCollectionValueType
(Object target, String name, boolean ignoreCase) This method can be used to retrieve the class type for an option if the option is a collection kind (list, map, or array).Class<?>
getOptionType
(String name, boolean ignoreCase) Gets the option class type.getOptionValue
(Object target, String name, boolean ignoreCase) Gets the property value
-
Method Details
-
getOptionType
Gets the option class type.- Parameters:
name
- the property name- Returns:
- the class type, or null if no option exists with the name
-
getAutowiredNames
Gets the names of the autowired options.- Returns:
- the names as an array, or null if there are no autowire options.
-
getCollectionValueType
This method can be used to retrieve the class type for an option if the option is a collection kind (list, map, or array). For maps, then the nested type returned is the type of the value in the map (not the map key type). -
getOptionValue
Gets the property value
-