public final class IntrospectionUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
IntrospectionUtils.AttributeHolder
Deprecated.
Is used only by deprecated method
|
static interface |
IntrospectionUtils.PropertySource |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PATH_SEPARATOR
Deprecated.
Used only by deprecated method
|
Constructor and Description |
---|
IntrospectionUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addJarsFromClassPath(java.util.Vector<java.net.URL> jars,
java.lang.String cp)
Deprecated.
Is used only by deprecated method
|
static void |
addToClassPath(java.util.Vector<java.net.URL> cpV,
java.lang.String dir)
Deprecated.
Is used only by deprecated method
|
static void |
addToolsJar(java.util.Vector<java.net.URL> v)
Deprecated.
Is used only by deprecated method
|
static void |
callMain(java.lang.Class<?> c,
java.lang.String[] args)
Deprecated.
Not used
|
static java.lang.Object |
callMethod0(java.lang.Object target,
java.lang.String methodN)
Deprecated.
Not used, though compliments callMethod1 and callMethodN here
|
static java.lang.Object |
callMethod1(java.lang.Object target,
java.lang.String methodN,
java.lang.Object param1,
java.lang.String typeParam1,
java.lang.ClassLoader cl) |
static java.lang.Object |
callMethodN(java.lang.Object target,
java.lang.String methodN,
java.lang.Object[] params,
java.lang.Class<?>[] typeParams) |
static java.lang.String |
capitalize(java.lang.String name)
Reverse of Introspector.decapitalize
|
static java.lang.String |
classPathAdd(java.net.URL[] urls,
java.lang.String cp)
Deprecated.
Not used
|
static void |
clear() |
static java.lang.Object |
convert(java.lang.String object,
java.lang.Class<?> paramType) |
static void |
displayClassPath(java.lang.String msg,
java.net.URL[] cp)
Deprecated.
Not used
|
static void |
execute(java.lang.Object proxy,
java.lang.String method)
Deprecated.
Not used
|
static java.lang.reflect.Method |
findMethod(java.lang.Class<?> c,
java.lang.String name,
java.lang.Class<?>[] params) |
static java.lang.reflect.Method[] |
findMethods(java.lang.Class<?> c) |
static java.lang.Object |
getAttribute(java.lang.Object proxy,
java.lang.String n)
Deprecated.
Not used
|
static java.net.URL[] |
getClassPath(java.lang.String dir,
java.lang.String cpath,
java.lang.String cpathProp,
boolean addTools)
Deprecated.
Not used
|
static java.net.URL[] |
getClassPath(java.util.Vector<java.net.URL> v)
Deprecated.
Is used only by deprecated method
|
static java.lang.String[] |
getFilesByExt(java.lang.String ld,
java.lang.String ext)
Deprecated.
Is used only by deprecated method
|
static java.lang.Object |
getProperty(java.lang.Object o,
java.lang.String name) |
static java.net.URL |
getURL(java.lang.String base,
java.lang.String file)
Deprecated.
Is used only by deprecated method
|
static java.lang.ClassLoader |
getURLClassLoader(java.net.URL[] urls,
java.lang.ClassLoader parent)
Deprecated.
Not used
|
static java.lang.String |
guessInstall(java.lang.String installSysProp,
java.lang.String homeSysProp,
java.lang.String jarName)
Deprecated.
No longer required. Will be removed in Tomcat 8.0.x.
|
static java.lang.String |
guessInstall(java.lang.String installSysProp,
java.lang.String homeSysProp,
java.lang.String jarName,
java.lang.String classFile)
Deprecated.
No longer required. Will be removed in Tomcat 8.0.x.
|
static boolean |
hasHook(java.lang.Object obj,
java.lang.String methodN)
Deprecated.
Not used
|
static java.lang.String |
replaceProperties(java.lang.String value,
java.util.Hashtable<java.lang.Object,java.lang.Object> staticProp,
IntrospectionUtils.PropertySource[] dynamicProp)
Replace ${NAME} with the property value
|
static void |
setAttribute(java.lang.Object proxy,
java.lang.String n,
java.lang.Object v)
Deprecated.
Not used
|
static void |
setProperty(java.lang.Object o,
java.lang.String name)
Deprecated.
Not used
|
static boolean |
setProperty(java.lang.Object o,
java.lang.String name,
java.lang.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(java.lang.Object o,
java.lang.String name,
java.lang.String value,
boolean invokeSetProperty) |
static java.lang.String |
unCapitalize(java.lang.String name)
Deprecated.
Not used
|
@Deprecated public static final java.lang.String PATH_SEPARATOR
@Deprecated public static void execute(java.lang.Object proxy, java.lang.String method) throws java.lang.Exception
java.lang.Exception
@Deprecated public static void setAttribute(java.lang.Object proxy, java.lang.String n, java.lang.Object v) throws java.lang.Exception
java.lang.Exception
@Deprecated public static java.lang.Object getAttribute(java.lang.Object proxy, java.lang.String n) throws java.lang.Exception
java.lang.Exception
@Deprecated public static java.lang.ClassLoader getURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
@Deprecated public static java.lang.String guessInstall(java.lang.String installSysProp, java.lang.String homeSysProp, java.lang.String jarName)
@Deprecated public static java.lang.String guessInstall(java.lang.String installSysProp, java.lang.String homeSysProp, java.lang.String jarName, java.lang.String classFile)
@Deprecated public static void displayClassPath(java.lang.String msg, java.net.URL[] cp)
@Deprecated public static java.lang.String classPathAdd(java.net.URL[] urls, java.lang.String cp)
public static boolean setProperty(java.lang.Object o, java.lang.String name, java.lang.String value)
public static boolean setProperty(java.lang.Object o, java.lang.String name, java.lang.String value, boolean invokeSetProperty)
public static java.lang.Object getProperty(java.lang.Object o, java.lang.String name)
@Deprecated public static void setProperty(java.lang.Object o, java.lang.String name)
public static java.lang.String replaceProperties(java.lang.String value, java.util.Hashtable<java.lang.Object,java.lang.Object> staticProp, IntrospectionUtils.PropertySource[] dynamicProp)
public static java.lang.String capitalize(java.lang.String name)
@Deprecated public static java.lang.String unCapitalize(java.lang.String name)
@Deprecated public static void addToClassPath(java.util.Vector<java.net.URL> cpV, java.lang.String dir)
@Deprecated public static void addToolsJar(java.util.Vector<java.net.URL> v)
@Deprecated public static java.lang.String[] getFilesByExt(java.lang.String ld, java.lang.String ext)
@Deprecated public static java.net.URL getURL(java.lang.String base, java.lang.String file)
@Deprecated public static void addJarsFromClassPath(java.util.Vector<java.net.URL> jars, java.lang.String cp) throws java.io.IOException, java.net.MalformedURLException
jars
- The jar listcp
- a String classpath of directory or jar file elements
separated by path.separator delimiters.java.io.IOException
- If an I/O error occursjava.net.MalformedURLException
- Doh ;)@Deprecated public static java.net.URL[] getClassPath(java.util.Vector<java.net.URL> v)
@Deprecated public static java.net.URL[] getClassPath(java.lang.String dir, java.lang.String cpath, java.lang.String cpathProp, boolean addTools) throws java.io.IOException, java.net.MalformedURLException
java.io.IOException
java.net.MalformedURLException
public static void clear()
public static java.lang.reflect.Method[] findMethods(java.lang.Class<?> c)
public static java.lang.reflect.Method findMethod(java.lang.Class<?> c, java.lang.String name, java.lang.Class<?>[] params)
@Deprecated public static boolean hasHook(java.lang.Object obj, java.lang.String methodN)
@Deprecated public static void callMain(java.lang.Class<?> c, java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object callMethod1(java.lang.Object target, java.lang.String methodN, java.lang.Object param1, java.lang.String typeParam1, java.lang.ClassLoader cl) throws java.lang.Exception
java.lang.Exception
@Deprecated public static java.lang.Object callMethod0(java.lang.Object target, java.lang.String methodN) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object callMethodN(java.lang.Object target, java.lang.String methodN, java.lang.Object[] params, java.lang.Class<?>[] typeParams) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object convert(java.lang.String object, java.lang.Class<?> paramType)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.