public final class IntrospectionUtils extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | IntrospectionUtils.AttributeHolderDeprecated. 
 Is used only by deprecated method | 
| static interface  | IntrospectionUtils.PropertySource | 
| static interface  | IntrospectionUtils.SecurePropertySource | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | PATH_SEPARATORDeprecated. 
 Used only by deprecated method | 
| Constructor and Description | 
|---|
| IntrospectionUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 boolean | isInstance(Class<?> clazz,
          String type)Checks to see if the specified class is an instance of or assignable from
 the specified type. | 
| static String | replaceProperties(String value,
                 Hashtable<Object,Object> staticProp,
                 IntrospectionUtils.PropertySource[] dynamicProp) | 
| static String | replaceProperties(String value,
                 Hashtable<Object,Object> staticProp,
                 IntrospectionUtils.PropertySource[] dynamicProp,
                 ClassLoader classLoader)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 | 
@Deprecated public static final String PATH_SEPARATOR
@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)
o - The object to set a property onname - The property namevalue - The property valuetrue if operation was successfulpublic static boolean setProperty(Object o, String name, String value, boolean invokeSetProperty)
@Deprecated public static void setProperty(Object o, String name)
@Deprecated public static String replaceProperties(String value, Hashtable<Object,Object> staticProp, IntrospectionUtils.PropertySource[] dynamicProp)
value - The valuestaticProp - Replacement propertiesdynamicProp - Replacement propertiespublic static String replaceProperties(String value, Hashtable<Object,Object> staticProp, IntrospectionUtils.PropertySource[] dynamicProp, ClassLoader classLoader)
value - The valuestaticProp - Replacement propertiesdynamicProp - Replacement propertiesclassLoader - Class loader associated with the code requesting the
                    propertypublic static String capitalize(String name)
name - The 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 occursMalformedURLException - 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
IOExceptionMalformedURLExceptionpublic static void clear()
@Deprecated public static boolean hasHook(Object obj, String methodN)
@Deprecated public static void callMain(Class<?> c, String[] args) throws Exception
Exceptionpublic 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
Exceptionpublic static Object callMethodN(Object target, String methodN, Object[] params, Class<?>[] typeParams) throws Exception
Exceptionpublic static boolean isInstance(Class<?> clazz, String type)
clazz, all its superclasses,
 interfaces and those superinterfaces are tested for a match against
 the type name type.
 This is similar to instanceof or Class.isAssignableFrom(java.lang.Class<?>)
 except that the target type will not be resolved into a Class
 object, which provides some security and memory benefits.clazz - The class to test for a match.type - The name of the type that clazz must be.true if the clazz tested is an
         instance of the specified type,
         false otherwise.Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.