Package org.apache.camel.spi
Interface PropertyConfigurerGetter
-
- All Known Subinterfaces:
ExtendedPropertyConfigurerGetter
public interface PropertyConfigurerGetterA 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String[]getAutowiredNames()Gets the names of the autowired options.default ObjectgetCollectionValueType(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.ObjectgetOptionValue(Object target, String name, boolean ignoreCase)Gets the property value
-
-
-
Method Detail
-
getOptionType
Class<?> getOptionType(String name, boolean ignoreCase)
Gets the option class type.- Parameters:
name- the property name- Returns:
- the class type, or null if no option exists with the name
-
getAutowiredNames
default String[] getAutowiredNames()
Gets the names of the autowired options.- Returns:
- the names as an array, or null if there are no autowire options.
-
getCollectionValueType
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). For maps, then the nested type returned is the type of the value in the map (not the map key type).
-
-