Java Doc for ClassLoaderUtils.java in  » EJB-Server-JBoss-4.2.1 » jmx » org » jboss » mx » loading » 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 » EJB Server JBoss 4.2.1 » jmx » org.jboss.mx.loading 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.mx.loading.ClassLoaderUtils

ClassLoaderUtils
public class ClassLoaderUtils (Code)
Utility methods for class loader to package names, etc.
author:
   Scott.Stark@jboss.org
version:
   $Revision: 57200 $

Inner Class :static class FileIterator
Inner Class :static class ClassPathEntry
Inner Class :static class ClassPathIterator



Method Summary
public static  SetclonePackageSet(Object toClone)
    
public static  voiddisplayClassInfo(Class clazz, StringBuffer results)
     Format a string buffer containing the Class, Interfaces, CodeSource, and ClassLoader information for the given object clazz.
public static  URLClassLoader[]getClassLoaderStack(ClassLoader cl)
    
public static  URL[]getClassLoaderURLs(ClassLoader cl)
     Use reflection to access a URL[] getURLs or URL[] getClasspath method so that non-URLClassLoader class loaders, or class loaders that override getURLs to return null or empty, can provide the true classpath info.
public static  StringgetJarClassName(String className)
    
public static  StringgetPackageName(String className)
     Parse a class name into its package prefix.
public static  StringgetResourceName(String className)
     Parse a class name into its resource form.
public static  SetnewPackageSet()
    
public static  String[]updateClassNamesMap(RepositoryClassLoader cl, Map classNamesMap)
     Given a UCL this method determine what classes it contains and create a mapping from the class names to the cl.
public static  String[]updateClassNamesMap(RepositoryClassLoader cl, Map classNamesMap, URL url, String[] prevClassNames)
     Augment the class names associated with a UCL.
static  String[]updateClassNamesMap(RepositoryClassLoader cl, Map classNamesMap, ClassPathIterator cpi, HashSet classNameSet)
    
public static  String[]updatePackageMap(RepositoryClassLoader cl, Map packagesMap)
     Given a UCL this method determine what packages it contains and create a mapping from the package names to the cl.
public static  String[]updatePackageMap(RepositoryClassLoader cl, Map packagesMap, URL url, String[] prevPkgNames)
     Augment the package name associated with a UCL.
static  String[]updatePackageMap(RepositoryClassLoader cl, Map packagesMap, ClassPathIterator cpi, HashSet pkgNameSet)
    



Method Detail
clonePackageSet
public static Set clonePackageSet(Object toClone)(Code)
Clone a package set
Parameters:
  the - set to clone the cloned package set



displayClassInfo
public static void displayClassInfo(Class clazz, StringBuffer results)(Code)
Format a string buffer containing the Class, Interfaces, CodeSource, and ClassLoader information for the given object clazz.
Parameters:
  clazz - the Class
Parameters:
  results - - the buffer to write the info to



getClassLoaderStack
public static URLClassLoader[] getClassLoaderStack(ClassLoader cl)(Code)
Get all of the URLClassLoaders from cl on up the hierarchy
Parameters:
  cl - the class loader to start from The possibly empty array of URLClassLoaders from cl throughits parent class loaders



getClassLoaderURLs
public static URL[] getClassLoaderURLs(ClassLoader cl)(Code)
Use reflection to access a URL[] getURLs or URL[] getClasspath method so that non-URLClassLoader class loaders, or class loaders that override getURLs to return null or empty, can provide the true classpath info.



getJarClassName
public static String getJarClassName(String className)(Code)
Translates a dot class name (java.lang.String) into a path form suitable for a jar entry (java/lang/String.class)
Parameters:
  className - java.lang.String java/lang/String.class



getPackageName
public static String getPackageName(String className)(Code)
Parse a class name into its package prefix. This has to handle array classes whose name is prefixed with [L.



getResourceName
public static String getResourceName(String className)(Code)
Parse a class name into its resource form. This has to handle array classes whose name is prefixed with [L.



newPackageSet
public static Set newPackageSet()(Code)
Create a new package set the new package set



updateClassNamesMap
public static String[] updateClassNamesMap(RepositoryClassLoader cl, Map classNamesMap) throws Exception(Code)
Given a UCL this method determine what classes it contains and create a mapping from the class names to the cl.
Parameters:
  cl - the UCL that loads from url
Parameters:
  classNamesMap - the Map to update the class names directly visible to the cl
throws:
  Exception -



updateClassNamesMap
public static String[] updateClassNamesMap(RepositoryClassLoader cl, Map classNamesMap, URL url, String[] prevClassNames) throws Exception(Code)
Augment the class names associated with a UCL.
Parameters:
  cl - the UCL that loads from url
Parameters:
  classNamesMap - the Map to update
Parameters:
  url - the URL to parse for class names
Parameters:
  prevClassNames - the set of pckage names already associated with cl the updated list of class names
throws:
  Exception -



updateClassNamesMap
static String[] updateClassNamesMap(RepositoryClassLoader cl, Map classNamesMap, ClassPathIterator cpi, HashSet classNameSet) throws Exception(Code)



updatePackageMap
public static String[] updatePackageMap(RepositoryClassLoader cl, Map packagesMap) throws Exception(Code)
Given a UCL this method determine what packages it contains and create a mapping from the package names to the cl.
Parameters:
  cl - the UCL that loads from url
Parameters:
  packagesMap - the Map to update the updated unique set of package names
throws:
  Exception -



updatePackageMap
public static String[] updatePackageMap(RepositoryClassLoader cl, Map packagesMap, URL url, String[] prevPkgNames) throws Exception(Code)
Augment the package name associated with a UCL.
Parameters:
  cl - the UCL that loads from url
Parameters:
  packagesMap - the Map to update
Parameters:
  url - the URL to parse for package names
Parameters:
  prevPkgNames - the set of pckage names already associated with cl the updated unique set of package names
throws:
  Exception -



updatePackageMap
static String[] updatePackageMap(RepositoryClassLoader cl, Map packagesMap, ClassPathIterator cpi, HashSet pkgNameSet) throws Exception(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.