Java Doc for _ClassUtils.java in  » J2EE » myfaces-core-1.2.0 » javax » faces » component » 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 » J2EE » myfaces core 1.2.0 » javax.faces.component 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.faces.component._ClassUtils

_ClassUtils
final class _ClassUtils (Code)

author:
   Manfred Geiler (latest modification by $Author: mbr $)
author:
   Anton Koinov
version:
   $Revision: 518532 $ $Date: 2007-03-15 10:13:01 +0100 (Do, 15 Mrz 2007) $


Field Summary
final public static  ClassBOOLEAN_ARRAY_CLASS
    
final public static  ClassBOOLEAN_OBJECT_ARRAY_CLASS
    
final public static  ClassBYTE_ARRAY_CLASS
    
final public static  ClassBYTE_OBJECT_ARRAY_CLASS
    
final public static  ClassCHARACTER_OBJECT_ARRAY_CLASS
    
final public static  ClassCHAR_ARRAY_CLASS
    
final public static  MapCOMMON_TYPES
    
final public static  ClassDOUBLE_ARRAY_CLASS
    
final public static  ClassDOUBLE_OBJECT_ARRAY_CLASS
    
final public static  ClassFLOAT_ARRAY_CLASS
    
final public static  ClassFLOAT_OBJECT_ARRAY_CLASS
    
final public static  ClassINTEGER_OBJECT_ARRAY_CLASS
    
final public static  ClassINT_ARRAY_CLASS
    
final public static  ClassLONG_ARRAY_CLASS
    
final public static  ClassLONG_OBJECT_ARRAY_CLASS
    
final public static  ClassOBJECT_ARRAY_CLASS
    
final public static  ClassSHORT_ARRAY_CLASS
    
final public static  ClassSHORT_OBJECT_ARRAY_CLASS
    
final public static  ClassSTRING_OBJECT_ARRAY_CLASS
    


Method Summary
public static  ClassclassForName(String type)
     Tries a Class.loadClass with the context class loader of the current thread first and automatically falls back to the ClassUtils class loader (i.e.
public static  ObjectconvertToType(Object value, Class desiredClass)
    
protected static  ClassLoadergetCurrentLoader(Object defaultObject)
     Gets the ClassLoader associated with the current thread.
public static  InputStreamgetResourceAsStream(String resource)
    
public static  IteratorgetResources(String resource, Object defaultObject)
    
public static  ClassjavaTypeToClass(String type)
     Similar as _ClassUtils.classForName(String) , but also supports primitive types and arrays as specified for the JavaType element in the JavaServer Faces Config DTD.
public static  ObjectnewInstance(String type)
    
public static  ObjectnewInstance(String type, Class expectedType)
    
public static  ObjectnewInstance(String type, Class[] expectedTypes)
    
public static  ObjectnewInstance(Class clazz)
    
public static  ClasssimpleClassForName(String type)
     Same as _ClassUtils.classForName(String) , but throws a RuntimeException (FacesException) instead of a ClassNotFoundException.
public static  ClasssimpleJavaTypeToClass(String type)
     Same as _ClassUtils.javaTypeToClass(String) , but throws a RuntimeException (FacesException) instead of a ClassNotFoundException.

Field Detail
BOOLEAN_ARRAY_CLASS
final public static Class BOOLEAN_ARRAY_CLASS(Code)



BOOLEAN_OBJECT_ARRAY_CLASS
final public static Class BOOLEAN_OBJECT_ARRAY_CLASS(Code)



BYTE_ARRAY_CLASS
final public static Class BYTE_ARRAY_CLASS(Code)



BYTE_OBJECT_ARRAY_CLASS
final public static Class BYTE_OBJECT_ARRAY_CLASS(Code)



CHARACTER_OBJECT_ARRAY_CLASS
final public static Class CHARACTER_OBJECT_ARRAY_CLASS(Code)



CHAR_ARRAY_CLASS
final public static Class CHAR_ARRAY_CLASS(Code)



COMMON_TYPES
final public static Map COMMON_TYPES(Code)



DOUBLE_ARRAY_CLASS
final public static Class DOUBLE_ARRAY_CLASS(Code)



DOUBLE_OBJECT_ARRAY_CLASS
final public static Class DOUBLE_OBJECT_ARRAY_CLASS(Code)



FLOAT_ARRAY_CLASS
final public static Class FLOAT_ARRAY_CLASS(Code)



FLOAT_OBJECT_ARRAY_CLASS
final public static Class FLOAT_OBJECT_ARRAY_CLASS(Code)



INTEGER_OBJECT_ARRAY_CLASS
final public static Class INTEGER_OBJECT_ARRAY_CLASS(Code)



INT_ARRAY_CLASS
final public static Class INT_ARRAY_CLASS(Code)



LONG_ARRAY_CLASS
final public static Class LONG_ARRAY_CLASS(Code)



LONG_OBJECT_ARRAY_CLASS
final public static Class LONG_OBJECT_ARRAY_CLASS(Code)



OBJECT_ARRAY_CLASS
final public static Class OBJECT_ARRAY_CLASS(Code)



SHORT_ARRAY_CLASS
final public static Class SHORT_ARRAY_CLASS(Code)



SHORT_OBJECT_ARRAY_CLASS
final public static Class SHORT_OBJECT_ARRAY_CLASS(Code)



STRING_OBJECT_ARRAY_CLASS
final public static Class STRING_OBJECT_ARRAY_CLASS(Code)





Method Detail
classForName
public static Class classForName(String type) throws ClassNotFoundException(Code)
Tries a Class.loadClass with the context class loader of the current thread first and automatically falls back to the ClassUtils class loader (i.e. the loader of the myfaces.jar lib) if necessary.
Parameters:
  type - fully qualified name of a non-primitive non-array class the corresponding Class
throws:
  NullPointerException - if type is null
throws:
  ClassNotFoundException -



convertToType
public static Object convertToType(Object value, Class desiredClass)(Code)



getCurrentLoader
protected static ClassLoader getCurrentLoader(Object defaultObject)(Code)
Gets the ClassLoader associated with the current thread. Returns the class loader associated with the specified default object if no context loader is associated with the current thread.
Parameters:
  defaultObject - The default object to use to determine the class loader (if none associated with current thread.) ClassLoader



getResourceAsStream
public static InputStream getResourceAsStream(String resource)(Code)



getResources
public static Iterator getResources(String resource, Object defaultObject)(Code)

Parameters:
  resource - Name of resource(s) to find in classpath
Parameters:
  defaultObject - The default object to use to determine the class loader (if none associated with current thread.) Iterator over URL Objects



javaTypeToClass
public static Class javaTypeToClass(String type) throws ClassNotFoundException(Code)
Similar as _ClassUtils.classForName(String) , but also supports primitive types and arrays as specified for the JavaType element in the JavaServer Faces Config DTD.
Parameters:
  type - fully qualified class name or name of a primitive type, both optionallyfollowed by "[]" to indicate an array type the corresponding Class
throws:
  NullPointerException - if type is null
throws:
  ClassNotFoundException -



newInstance
public static Object newInstance(String type) throws FacesException(Code)



newInstance
public static Object newInstance(String type, Class expectedType) throws FacesException(Code)



newInstance
public static Object newInstance(String type, Class[] expectedTypes)(Code)



newInstance
public static Object newInstance(Class clazz) throws FacesException(Code)



simpleClassForName
public static Class simpleClassForName(String type)(Code)
Same as _ClassUtils.classForName(String) , but throws a RuntimeException (FacesException) instead of a ClassNotFoundException. the corresponding Class
throws:
  NullPointerException - if type is null
throws:
  FacesException - if class not found



simpleJavaTypeToClass
public static Class simpleJavaTypeToClass(String type)(Code)
Same as _ClassUtils.javaTypeToClass(String) , but throws a RuntimeException (FacesException) instead of a ClassNotFoundException. the corresponding Class
throws:
  NullPointerException - if type is null
throws:
  FacesException - if class not found



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.