public class Configurator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
NO_PARAMS_TYPES
No parameter types
|
| Constructor and Description |
|---|
Configurator() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
convertValue(Class<?> clazz,
Object value,
boolean replaceProperties,
boolean trim)
Convert a value
|
static boolean |
equals(String[] typeNames,
Class<?>[] typeInfos)
Test whether type names are equal to type infos
|
static Method |
findMethod(org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex index,
Class classInfo,
String name,
String[] paramTypes,
boolean isStatic,
boolean isPublic,
boolean strict)
Find method info
|
static String[] |
getTypes(ValueConfig[] values)
Get types from values.
|
protected static boolean |
simpleCheck(String[] typeNames,
Class<?>[] typeInfos)
A simple null and length check.
|
static Class<?> |
toClass(Type type)
Turn type into class.
|
public static final String[] NO_PARAMS_TYPES
public static Class<?> toClass(Type type)
type - the typepublic static Object convertValue(Class<?> clazz, Object value, boolean replaceProperties, boolean trim) throws Throwable
clazz - the classvalue - the valuereplaceProperties - whether to replace system propertiestrim - whether to trim string valueThrowable - for any errorpublic static String[] getTypes(ValueConfig[] values)
values - the valuespublic static Method findMethod(org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex index, Class classInfo, String name, String[] paramTypes, boolean isStatic, boolean isPublic, boolean strict) throws IllegalArgumentException
index - the deployment reflection indexclassInfo - the class infoname - the method nameparamTypes - the parameter typesisStatic - must the method be staticisPublic - must the method be publicstrict - is strict about method modifiersIllegalArgumentException - when no such methodpublic static boolean equals(String[] typeNames, Class<?>[] typeInfos)
typeNames - the type namestypeInfos - the type infosCopyright © 2021 JBoss by Red Hat. All rights reserved.