Java Doc for IntrospectionUtils.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » catalina » tribes » demos » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » apache tomcat 6.0.14 » org.apache.catalina.tribes.demos 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.tribes.demos.IntrospectionUtils

IntrospectionUtils
final public class IntrospectionUtils (Code)
Utils for introspection and reflection

Inner Class :public static interface PropertySource
Inner Class :public static interface AttributeHolder

Field Summary
public static  StringPATH_SEPARATOR
    
final static  intdbg
    
static  Object[]emptyArray
    
static  HashtableobjectMethods
    


Method Summary
public static  voidaddJarsFromClassPath(Vector jars, String cp)
     Add elements from the classpath cp to a Vector jars as file URLs (We use Vector for JDK 1.1 compat).
public static  voidaddToClassPath(Vector cpV, String dir)
     Add all the jar files in a dir to the classpath, represented as a Vector of URLs.
public static  voidaddToolsJar(Vector v)
    
public static  voidcallMain(Class c, String args)
    
public static  ObjectcallMethod0(Object target, String methodN)
    
public static  ObjectcallMethod1(Object target, String methodN, Object param1, String typeParam1, ClassLoader cl)
    
public static  ObjectcallMethodN(Object target, String methodN, Object params, Class typeParams)
    
public static  Stringcapitalize(String name)
    
public static  StringclassPathAdd(URL urls, String cp)
     Adds classpath entries from a vector of URL's to the "tc_path_add" System property.
public static  voidclear()
    
public static  Objectconvert(String object, Class paramType)
    
static  voidd(String s)
    
public static  voiddisplayClassPath(String msg, URL[] cp)
    
public static  voidexecute(Object proxy, String method)
    
public static  String[]findBooleanSetters(Class c)
    
public static  MethodfindMethod(Class c, String name, Class params)
    
public static  Method[]findMethods(Class c)
    
public static  String[]findVoidSetters(Class c)
    
public static  ObjectgetAttribute(Object proxy, String n)
    
public static  URL[]getClassPath(Vector v)
    
public static  URL[]getClassPath(String dir, String cpath, String cpathProp, boolean addTools)
     Construct a URL classpath from files in a directory, a cpath property, and tools.jar.
public static  String[]getFilesByExt(String ld, String ext)
    
public static  ObjectgetProperty(Object o, String name)
    
public static  URLgetURL(String base, String file)
    
public static  ClassLoadergetURLClassLoader(URL urls, ClassLoader parent)
     Construct a URLClassLoader.
public static  StringguessInstall(String installSysProp, String homeSysProp, String jarName)
    
public static  StringguessInstall(String installSysProp, String homeSysProp, String jarName, String classFile)
     Guess a product install/home by analyzing the class path.
public static  booleanhasHook(Object obj, String methodN)
    
public static  booleanprocessArgs(Object proxy, String args)
    
public static  booleanprocessArgs(Object proxy, String args, String args0, String args1, Hashtable aliases)
    
public static  StringreplaceProperties(String value, Object getter)
    
public static  StringreplaceProperties(String value, Hashtable staticProp, PropertySource dynamicProp)
    
public static  voidsetAttribute(Object proxy, String n, Object v)
    
public static  voidsetProperty(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).
public static  voidsetProperty(Object o, String name)
    
public static  StringunCapitalize(String name)
    

Field Detail
PATH_SEPARATOR
public static String PATH_SEPARATOR(Code)



dbg
final static int dbg(Code)



emptyArray
static Object[] emptyArray(Code)



objectMethods
static Hashtable objectMethods(Code)





Method Detail
addJarsFromClassPath
public static void addJarsFromClassPath(Vector jars, String cp) throws IOException, MalformedURLException(Code)
Add elements from the classpath cp to a Vector jars as file URLs (We use Vector for JDK 1.1 compat).


Parameters:
  jars - The jar list
Parameters:
  cp - a String classpath of directory or jar file elementsseparated by path.separator delimiters.
throws:
  IOException - If an I/O error occurs
throws:
  MalformedURLException - Doh ;)




addToClassPath
public static void addToClassPath(Vector cpV, String dir)(Code)
Add all the jar files in a dir to the classpath, represented as a Vector of URLs.



addToolsJar
public static void addToolsJar(Vector v)(Code)



callMain
public static void callMain(Class c, String args) throws Exception(Code)



callMethod0
public static Object callMethod0(Object target, String methodN) throws Exception(Code)



callMethod1
public static Object callMethod1(Object target, String methodN, Object param1, String typeParam1, ClassLoader cl) throws Exception(Code)



callMethodN
public static Object callMethodN(Object target, String methodN, Object params, Class typeParams) throws Exception(Code)



capitalize
public static String capitalize(String name)(Code)
Reverse of Introspector.decapitalize



classPathAdd
public static String classPathAdd(URL urls, String cp)(Code)
Adds classpath entries from a vector of URL's to the "tc_path_add" System property. This System property lists the classpath entries common to web applications. This System property is currently used by Jasper when its JSP servlet compiles the Java file for a JSP.



clear
public static void clear()(Code)



convert
public static Object convert(String object, Class paramType)(Code)



d
static void d(String s)(Code)



displayClassPath
public static void displayClassPath(String msg, URL[] cp)(Code)
Debug method, display the classpath



execute
public static void execute(Object proxy, String method) throws Exception(Code)
Call execute() - any ant-like task should work



findBooleanSetters
public static String[] findBooleanSetters(Class c)(Code)



findMethod
public static Method findMethod(Class c, String name, Class params)(Code)



findMethods
public static Method[] findMethods(Class c)(Code)



findVoidSetters
public static String[] findVoidSetters(Class c)(Code)



getAttribute
public static Object getAttribute(Object proxy, String n) throws Exception(Code)
Call void getAttribute( String )



getClassPath
public static URL[] getClassPath(Vector v)(Code)
Return a URL[] that can be used to construct a class loader



getClassPath
public static URL[] getClassPath(String dir, String cpath, String cpathProp, boolean addTools) throws IOException, MalformedURLException(Code)
Construct a URL classpath from files in a directory, a cpath property, and tools.jar.



getFilesByExt
public static String[] getFilesByExt(String ld, String ext)(Code)
Return all files with a given extension in a dir



getProperty
public static Object getProperty(Object o, String name)(Code)



getURL
public static URL getURL(String base, String file)(Code)
Construct a file url from a file, using a base dir



getURLClassLoader
public static ClassLoader getURLClassLoader(URL urls, ClassLoader parent)(Code)
Construct a URLClassLoader. Will compile and work in JDK1.1 too.



guessInstall
public static String guessInstall(String installSysProp, String homeSysProp, String jarName)(Code)



guessInstall
public static String guessInstall(String installSysProp, String homeSysProp, String jarName, String classFile)(Code)
Guess a product install/home by analyzing the class path. It works for product using the pattern: lib/executable.jar or if executable.jar is included in classpath by a shell script. ( java -jar also works ) Insures both "install" and "home" System properties are set. If either or both System properties are unset, "install" and "home" will be set to the same value. This value will be the other System property that is set, or the guessed value if neither is set.



hasHook
public static boolean hasHook(Object obj, String methodN)(Code)
Test if the object implements a particular method



processArgs
public static boolean processArgs(Object proxy, String args) throws Exception(Code)



processArgs
public static boolean processArgs(Object proxy, String args, String args0, String args1, Hashtable aliases) throws Exception(Code)



replaceProperties
public static String replaceProperties(String value, Object getter)(Code)
Replace ${NAME} with the property value



replaceProperties
public static String replaceProperties(String value, Hashtable staticProp, PropertySource dynamicProp)(Code)
Replace ${NAME} with the property value



setAttribute
public static void setAttribute(Object proxy, String n, Object v) throws Exception(Code)
Call void setAttribute( String ,Object )



setProperty
public static void setProperty(Object o, String name, String value)(Code)
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).



setProperty
public static void setProperty(Object o, String name)(Code)



unCapitalize
public static String unCapitalize(String name)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.