public class ConfigurationUtils extends Object
Utility methods for configuration
| Type Params | Return Type | Name and description |
|---|---|---|
<T> |
public static Iterable<T> |
findServices(PropertyResolver configuration, String configurationKey, Class<T> serviceType)Finds services of the given type from configuration or via ServiceLoader |
<T> |
public static Iterable<T> |
findServices(List servicesList, Class<T> serviceType)Finds services of the given type from the given list or via ServiceLoader |
Finds services of the given type from configuration or via ServiceLoader
configuration - The configurationconfigurationKey - The configuration keyserviceType - The type of serviceT - The service typeFinds services of the given type from the given list or via ServiceLoader
servicesList - The list of servicesserviceType - The type of serviceT - The service type