Java Doc for ClassLoaderFactory.java in  » ESB » open-esb » com » sun » jbi » framework » 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 » ESB » open esb » com.sun.jbi.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.framework.ClassLoaderFactory

ClassLoaderFactory
final public class ClassLoaderFactory (Code)
This is the implementation of the ClassLoaderFactory. It acts as a factory and cache to create and retrieve different types of classloaders and classloader chains for use in the JBI Framework. Examples include Component ClassLoaders, Bootstrap Classloaders, Shared Classloaders.
author:
   Sun Microsystems, Inc.




Method Summary
public  ClassLoadercreateBootstrapClassLoader(Component component)
     Creates and returns the installation bootstrap classloader for a JBI component. This instance is not cached by the ClassLoaderFactory as these are created and used infrequently.
public  ClassLoadercreateComponentClassLoader(Component component)
     Creates and returns the classloader for a JBI component. It is used to load classes in the classpath of a component installed in the JBI namespace.
public  ClassLoadercreateSharedClassLoader(SharedLibrary sharedLib)
     Creates and returns the classloader for a Shared Library. This classloader is used to load classes belonging to libraries that are shared between two or more JBI components.
Parameters:
  sharedLib - A SharedLibrary object representing the library.
throws:
  javax.jbi.JBIException - If the shared classloader cannot besuccessfully created.
throws:
  java.lang.IllegalArgumentException - If a null argument isreceived.
public  ClassLoadergetComponentClassLoader(String componentId)
     Returns the classloader of a JBI component (binding or engine). This method is typically called by components such as NMS after the initial class loader creation by the ComponentFramework.
public static  ClassLoaderFactorygetInstance()
     Returns a singleton instance of the ClassLoaderFactory class.
public  ClassLoadergetSharedClassLoader(String sharedLibId)
     Returns the classloader for a Shared Library. This shared class loader is shared between two or more components installed in the JBI namespace. This method is typically called by components such as NMR after the initial class loader creation by the ComponentFramework.
public  voidremoveComponentClassLoader(String componentId)
     Removes the classloader of a JBI component.
public  voidremoveSharedClassLoader(String sharedLibId)
     Destroys the classloader for a Shared Library. This method should be called only when the corresponding Shared Library is being destroyed.



Method Detail
createBootstrapClassLoader
public ClassLoader createBootstrapClassLoader(Component component) throws JBIException(Code)
Creates and returns the installation bootstrap classloader for a JBI component. This instance is not cached by the ClassLoaderFactory as these are created and used infrequently. The bootstrap classloader is used to bootstrap the installation of a binding/engine.
Parameters:
  component - runtime representation of the component.
throws:
  javax.jbi.JBIException - if the classloader could not be created.
throws:
  java.lang.IllegalArgumentException - if a null or empty list ofclass path elements is found. An instance of the Bootstrap classloader.



createComponentClassLoader
public ClassLoader createComponentClassLoader(Component component) throws JBIException(Code)
Creates and returns the classloader for a JBI component. It is used to load classes in the classpath of a component installed in the JBI namespace. It is important that all shared libraries that are referenced by this component are already installed by the time a call to this method is made as it needs these to create the DelegatingClassLoader chain.
Parameters:
  component - reference to the component object
throws:
  java.lang.SecurityException - If the current thread does not have permissions to create a class loader.
throws:
  JBIException - if class loader cannot be created.create a class loader.
throws:
  IllegalArgumentException - if a null component is passed in The component classloader.



createSharedClassLoader
public ClassLoader createSharedClassLoader(SharedLibrary sharedLib) throws JBIException(Code)
Creates and returns the classloader for a Shared Library. This classloader is used to load classes belonging to libraries that are shared between two or more JBI components.
Parameters:
  sharedLib - A SharedLibrary object representing the library.
throws:
  javax.jbi.JBIException - If the shared classloader cannot besuccessfully created.
throws:
  java.lang.IllegalArgumentException - If a null argument isreceived. The shared library classloader.



getComponentClassLoader
public ClassLoader getComponentClassLoader(String componentId) throws JBIException(Code)
Returns the classloader of a JBI component (binding or engine). This method is typically called by components such as NMS after the initial class loader creation by the ComponentFramework. Hence there should always be a valid classloader for a valid component. If this method throws an exception,it probably means that the component was not installed correctly or that an invalid component id was passed in.
Parameters:
  componentId - the id of the binding or engine
throws:
  JBIException - If there is no class loader available for thecomponent. The classloader for the component.



getInstance
public static ClassLoaderFactory getInstance()(Code)
Returns a singleton instance of the ClassLoaderFactory class. The instance of the ClassLoaderFactory



getSharedClassLoader
public ClassLoader getSharedClassLoader(String sharedLibId) throws JBIException(Code)
Returns the classloader for a Shared Library. This shared class loader is shared between two or more components installed in the JBI namespace. This method is typically called by components such as NMR after the initial class loader creation by the ComponentFramework. Hence there should always be a valid classloader for a valid Shared Library. If this method throws an exception,it probably means that the library was not installed correctly or that an invalid Shared Library ID was passed in.
Parameters:
  sharedLibId - The id of the Shared Library.
throws:
  JBIException - If there is no class loader available for the Shared Library. The Shared Library classloader.



removeComponentClassLoader
public void removeComponentClassLoader(String componentId) throws JBIException(Code)
Removes the classloader of a JBI component. This should only be called when a component is being uninstalled.
Parameters:
  componentId - The component ID
throws:
  JBIException - If the classloader cannot be removed.
throws:
  IllegalArgumentException - If a null component ID is passed in.



removeSharedClassLoader
public void removeSharedClassLoader(String sharedLibId) throws JBIException(Code)
Destroys the classloader for a Shared Library. This method should be called only when the corresponding Shared Library is being destroyed. There should never be a condition where a shared classloader does not exist for an active Shared Library.
Parameters:
  sharedLibId - Shared Library ID.
throws:
  javax.jbi.JBIException - If a shared classloader cannot be removed.
throws:
  java.lang.IllegalArgumentException - If a null argument is received.



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.