public class ParameterDiscovery extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
ParameterDiscovery() |
| Modifier and Type | Method and Description |
|---|---|
static List<Parameter> |
discoverParameterAnnotations(Class<?> clazz) |
static Map<String,Class<?>> |
discoverParameters(Class<?> clazz)
Check the given class for any @parameter annotated fields.
|
static Parameter |
getParameterAnnotation(Class<?> clazz,
String key)
This method returns the parameter annotation from the given class for the
specified parameter key.
|
static String |
getParameterName(Method m) |
static Class<?> |
getParameterType(Class<?> clazz,
String name) |
static Map<String,String> |
getProperties(String prefix,
Properties p) |
static Map<String,String> |
getSystemProperties(String prefix) |
static boolean |
isGetter(Method m)
This method defines whether a method matches all requirements of being a
get-Method.
|
static boolean |
isSetter(Method m)
This method defines whether a method matches all requirements of being a
get-Method.
|
public static Map<String,Class<?>> discoverParameters(Class<?> clazz)
clazz - public static Parameter getParameterAnnotation(Class<?> clazz, String key)
null.clazz - key - public static List<Parameter> discoverParameterAnnotations(Class<?> clazz)
public static boolean isGetter(Method m)
get and the return type to be any of the ones supported for
injection.m - public static boolean isSetter(Method m)
set and the single (!) parameter type to be any of the ones
supported for injection.m - public static Map<String,String> getProperties(String prefix, Properties p)
Copyright © 2018. All rights reserved.