Package org.citrusframework.spi
Interface TypeResolver
- All Known Implementing Classes:
ResourcePathTypeResolver
public interface TypeResolver
Resolves types by searching for classpath resource mapping files in order to resolve class references at runtime.
- Author:
- Christoph Deppisch
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault <T> TLoad default type information from given resource path property file and create new instance of given type.<T> TLoad given property from given resource path property file and create new instance of given type.Load all resources and create new instance of given type.resolveAll(String resourcePath) Load all resources in given resource path and create new instance of given type.resolveAll(String resourcePath, String property) Load all resources in given resource path and create new instance of given type.resolveAll(String resourcePath, String property, String keyProperty) Load all resources in given resource path and create new instance of given type.resolveProperty(String resourcePath, String property) Resolve resource path property file with given name and load given property.
-
Field Details
-
DEFAULT_TYPE_PROPERTY
Property name that holds the type information to resolve- See Also:
-
TYPE_PROPERTY_WILDCARD
Property name to mark that multiple types will be present all types are loaded- See Also:
-
-
Method Details
-
resolveProperty
Resolve resource path property file with given name and load given property.- Parameters:
resourcePath-property-- Returns:
-
resolve
Load default type information from given resource path property file and create new instance of given type.- Parameters:
resourcePath-initargs-- Returns:
-
resolve
Load given property from given resource path property file and create new instance of given type. The type information is read by the given property in the resource file.- Parameters:
resourcePath-property-initargs-- Returns:
-
resolveAll
Load all resources and create new instance of given type. The type information is read by the given property in the resource file. The keys in the resulting map represent the resource file names.- Type Parameters:
T-- Returns:
-
resolveAll
Load all resources in given resource path and create new instance of given type. The type information is read by the given property in the resource file. The keys in the resulting map represent the resource file names.- Type Parameters:
T-- Parameters:
resourcePath-- Returns:
-
resolveAll
Load all resources in given resource path and create new instance of given type. The type information is read by the given property in the resource file. The keys in the resulting map represent the resource file names.- Type Parameters:
T-- Parameters:
resourcePath-property-- Returns:
-
resolveAll
Load all resources in given resource path and create new instance of given type. The type information is read by the given property in the resource file.- Type Parameters:
T-- Parameters:
resourcePath-property-keyProperty-- Returns:
-