|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.IntrospectionUtils
public final class IntrospectionUtils
Utils for introspection and reflection
Nested Class Summary | |
---|---|
static interface |
IntrospectionUtils.AttributeHolder
Deprecated. Is used only by deprecated method |
static interface |
IntrospectionUtils.PropertySource
|
Field Summary | |
---|---|
static String |
PATH_SEPARATOR
Deprecated. Used only by deprecated method |
Constructor Summary | |
---|---|
IntrospectionUtils()
|
Method Summary | |
---|---|
static void |
addJarsFromClassPath(Vector<URL> jars,
String cp)
Deprecated. Is used only by deprecated method |
static void |
addToClassPath(Vector<URL> cpV,
String dir)
Deprecated. Is used only by deprecated method |
static void |
addToolsJar(Vector<URL> v)
Deprecated. Is used only by deprecated method |
static void |
callMain(Class<?> c,
String[] args)
Deprecated. Not used |
static Object |
callMethod0(Object target,
String methodN)
Deprecated. Not used, though compliments callMethod1 and callMethodN here |
static Object |
callMethod1(Object target,
String methodN,
Object param1,
String typeParam1,
ClassLoader cl)
|
static Object |
callMethodN(Object target,
String methodN,
Object[] params,
Class<?>[] typeParams)
|
static String |
capitalize(String name)
Reverse of Introspector.decapitalize |
static String |
classPathAdd(URL[] urls,
String cp)
Deprecated. Not used |
static void |
clear()
|
static Object |
convert(String object,
Class<?> paramType)
|
static void |
displayClassPath(String msg,
URL[] cp)
Deprecated. Not used |
static void |
execute(Object proxy,
String method)
Deprecated. Not used |
static Method |
findMethod(Class<?> c,
String name,
Class<?>[] params)
|
static Method[] |
findMethods(Class<?> c)
|
static Object |
getAttribute(Object proxy,
String n)
Deprecated. Not used |
static URL[] |
getClassPath(String dir,
String cpath,
String cpathProp,
boolean addTools)
Deprecated. Not used |
static URL[] |
getClassPath(Vector<URL> v)
Deprecated. Is used only by deprecated method |
static String[] |
getFilesByExt(String ld,
String ext)
Deprecated. Is used only by deprecated method |
static Object |
getProperty(Object o,
String name)
|
static URL |
getURL(String base,
String file)
Deprecated. Is used only by deprecated method |
static ClassLoader |
getURLClassLoader(URL[] urls,
ClassLoader parent)
Deprecated. Not used |
static String |
guessInstall(String installSysProp,
String homeSysProp,
String jarName)
Deprecated. No longer required. Will be removed in Tomcat 8.0.x. |
static String |
guessInstall(String installSysProp,
String homeSysProp,
String jarName,
String classFile)
Deprecated. No longer required. Will be removed in Tomcat 8.0.x. |
static boolean |
hasHook(Object obj,
String methodN)
Deprecated. Not used |
static String |
replaceProperties(String value,
Hashtable<Object,Object> staticProp,
IntrospectionUtils.PropertySource[] dynamicProp)
Replace ${NAME} with the property value |
static void |
setAttribute(Object proxy,
String n,
Object v)
Deprecated. Not used |
static void |
setProperty(Object o,
String name)
Deprecated. Not used |
static boolean |
setProperty(Object o,
String name,
String value)
Find a method with the right name If found, call the method ( if param is int or boolean we'll convert value to the right type before) - that means you can have setDebug(1). |
static boolean |
setProperty(Object o,
String name,
String value,
boolean invokeSetProperty)
|
static String |
unCapitalize(String name)
Deprecated. Not used |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final String PATH_SEPARATOR
Constructor Detail |
---|
public IntrospectionUtils()
Method Detail |
---|
@Deprecated public static void execute(Object proxy, String method) throws Exception
Exception
@Deprecated public static void setAttribute(Object proxy, String n, Object v) throws Exception
Exception
@Deprecated public static Object getAttribute(Object proxy, String n) throws Exception
Exception
@Deprecated public static ClassLoader getURLClassLoader(URL[] urls, ClassLoader parent)
@Deprecated public static String guessInstall(String installSysProp, String homeSysProp, String jarName)
@Deprecated public static String guessInstall(String installSysProp, String homeSysProp, String jarName, String classFile)
@Deprecated public static void displayClassPath(String msg, URL[] cp)
@Deprecated public static String classPathAdd(URL[] urls, String cp)
public static boolean setProperty(Object o, String name, String value)
public static boolean setProperty(Object o, String name, String value, boolean invokeSetProperty)
public static Object getProperty(Object o, String name)
@Deprecated public static void setProperty(Object o, String name)
public static String replaceProperties(String value, Hashtable<Object,Object> staticProp, IntrospectionUtils.PropertySource[] dynamicProp)
public static String capitalize(String name)
@Deprecated public static String unCapitalize(String name)
@Deprecated public static void addToClassPath(Vector<URL> cpV, String dir)
@Deprecated public static void addToolsJar(Vector<URL> v)
@Deprecated public static String[] getFilesByExt(String ld, String ext)
@Deprecated public static URL getURL(String base, String file)
@Deprecated public static void addJarsFromClassPath(Vector<URL> jars, String cp) throws IOException, MalformedURLException
jars
- The jar listcp
- a String classpath of directory or jar file elements
separated by path.separator delimiters.
IOException
- If an I/O error occurs
MalformedURLException
- Doh ;)@Deprecated public static URL[] getClassPath(Vector<URL> v)
@Deprecated public static URL[] getClassPath(String dir, String cpath, String cpathProp, boolean addTools) throws IOException, MalformedURLException
IOException
MalformedURLException
public static void clear()
public static Method[] findMethods(Class<?> c)
public static Method findMethod(Class<?> c, String name, Class<?>[] params)
@Deprecated public static boolean hasHook(Object obj, String methodN)
@Deprecated public static void callMain(Class<?> c, String[] args) throws Exception
Exception
public static Object callMethod1(Object target, String methodN, Object param1, String typeParam1, ClassLoader cl) throws Exception
Exception
@Deprecated public static Object callMethod0(Object target, String methodN) throws Exception
Exception
public static Object callMethodN(Object target, String methodN, Object[] params, Class<?>[] typeParams) throws Exception
Exception
public static Object convert(String object, Class<?> paramType)
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |