Java Doc for LoaderRepository.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.LoaderRepository

All known Subclasses:   org.jboss.mx.loading.BasicLoaderRepository,  org.jboss.mx.loading.UnifiedLoaderRepository3,
LoaderRepository
abstract public class LoaderRepository implements ServerConstants,ClassLoaderRepository(Code)
Abstract base class of all loader repository implementations
See Also:   org.jboss.mx.loading.BasicLoaderRepository
author:
   Juha Lindfors.
version:
   $Revision: 57200 $


Field Summary
protected static  LoaderRepositoryinstance
    
protected static  Vectorloaders
    
protected  Translatortranslator
    


Method Summary
abstract public  voidaddClassLoader(ClassLoader cl)
    
abstract public  booleanaddClassLoaderURL(ClassLoader cl, URL url)
     Update the set of URLs known to be associated with a previously added class loader.
 voidcacheLoadedClass(String name, Class cls, ClassLoader cl)
    
 voidclear()
    
public  intcompare(LoaderRepository lr)
    
public  ClassgetCachedClass(String classname)
    
public  VectorgetLoaders()
    
final public static  ClassgetNativeClassForName(String className)
    
abstract public  URLgetResource(String name, ClassLoader cl)
    
abstract public  voidgetResources(String name, ClassLoader cl, List urls)
     Find all resource URLs for the given name.
public  TranslatorgetTranslator()
    
public  URL[]getURLs()
    
abstract public  ClassloadClass(String className)
     Loads a class from the repository.
abstract public  ClassloadClass(String name, boolean resolve, ClassLoader cl)
    
abstract public  ClassloadClassBefore(ClassLoader stop, String className)
     Loads a class from the repository, using the classloaders that were registered before the given classloader.
abstract public  ClassloadClassWithout(ClassLoader loader, String className)
     Loads a class from the repository, excluding the given classloader.
abstract public  RepositoryClassLoadernewClassLoader(URL url, boolean addToRepository)
    
abstract public  RepositoryClassLoadernewClassLoader(URL url, URL origURL, boolean addToRepository)
    
abstract public  voidremoveClassLoader(ClassLoader cl)
     Remove a cladd loader from the repository.
protected  intreverseCompare(LoaderRepository lr)
    
public  voidsetTranslator(Translator t)
    

Field Detail
instance
protected static LoaderRepository instance(Code)



loaders
protected static Vector loaders(Code)



translator
protected Translator translator(Code)





Method Detail
addClassLoader
abstract public void addClassLoader(ClassLoader cl)(Code)
Add a class loader to the repository



addClassLoaderURL
abstract public boolean addClassLoaderURL(ClassLoader cl, URL url)(Code)
Update the set of URLs known to be associated with a previously added class loader.
Parameters:
  cl -
Parameters:
  url -



cacheLoadedClass
void cacheLoadedClass(String name, Class cls, ClassLoader cl)(Code)
Add a class to the the cache



clear
void clear()(Code)



compare
public int compare(LoaderRepository lr)(Code)
Compare two loader repository, by default we do no special ordering
Parameters:
  lr - the loader repository -1, 0, 1 depending upon the order



getCachedClass
public Class getCachedClass(String classname)(Code)



getLoaders
public Vector getLoaders()(Code)



getNativeClassForName
final public static Class getNativeClassForName(String className)(Code)
Return the class of a java native type the class, or null if className is not a native class name



getResource
abstract public URL getResource(String name, ClassLoader cl)(Code)
Find a resource URL for the given name
Parameters:
  name - the resource name
Parameters:
  cl - the requesting class loader The resource URL if found, null otherwise



getResources
abstract public void getResources(String name, ClassLoader cl, List urls)(Code)
Find all resource URLs for the given name. Since this typically entails an exhuastive search of the repository it can be a relatively slow operation.
Parameters:
  name - the resource name
Parameters:
  cl - the requesting class loader
Parameters:
  urls - a list into which the located resource URLs will be placed



getTranslator
public Translator getTranslator()(Code)



getURLs
public URL[] getURLs()(Code)



loadClass
abstract public Class loadClass(String className) throws ClassNotFoundException(Code)
Loads a class from the repository. This method attempts to load the class using all the classloader registered to the repository.
Parameters:
  className - the class to load the found class
exception:
  ClassNotFoundException - when there is no such class



loadClass
abstract public Class loadClass(String name, boolean resolve, ClassLoader cl) throws ClassNotFoundException(Code)
Load the given class from the repository
Parameters:
  name -
Parameters:
  resolve -
Parameters:
  cl -
throws:
  ClassNotFoundException -



loadClassBefore
abstract public Class loadClassBefore(ClassLoader stop, String className) throws ClassNotFoundException(Code)
Loads a class from the repository, using the classloaders that were registered before the given classloader.
Parameters:
  stop - consult all the classloaders registered before this onein an attempt to load a class
Parameters:
  className - name of the class to load loaded class instance
throws:
  ClassNotFoundException - if none of the consulted classloaders wereable to load the requested class



loadClassWithout
abstract public Class loadClassWithout(ClassLoader loader, String className) throws ClassNotFoundException(Code)
Loads a class from the repository, excluding the given classloader.
Parameters:
  loader - the classloader to exclude
Parameters:
  className - the class to load the found class
exception:
  ClassNotFoundException - when there is no such class



newClassLoader
abstract public RepositoryClassLoader newClassLoader(URL url, boolean addToRepository) throws Exception(Code)
Create RepositoryClassLoader and optionally add it to the repository
Parameters:
  url - the URL to use for class loading
Parameters:
  addToRepository - a flag indicating if the CL should be added tothe repository the UCL instance
throws:
  Exception -



newClassLoader
abstract public RepositoryClassLoader newClassLoader(URL url, URL origURL, boolean addToRepository) throws Exception(Code)
Create RepositoryClassLoader and optionally add it to the repository
Parameters:
  url - the URL to use for class loading
Parameters:
  origURL - an orignal URL to use as the URL for the CL CodeSource.This is useful when the url is a local copy that is difficult to use forsecurity policy writing.
Parameters:
  addToRepository - a flag indicating if the CL should be added tothe repository the CL instance
throws:
  Exception -



removeClassLoader
abstract public void removeClassLoader(ClassLoader cl)(Code)
Remove a cladd loader from the repository.
Parameters:
  cl -



reverseCompare
protected int reverseCompare(LoaderRepository lr)(Code)
Allow subclasses to override the ordering
Parameters:
  lr - the loader repository -1, 0, 1 depending upon the order



setTranslator
public void setTranslator(Translator t)(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.