Java Doc for Loader.java in  » XML » jibx-1.1.5 » org » jibx » binding » 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 » XML » jibx 1.1.5 » org.jibx.binding 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.net.URLClassLoader
   org.jibx.binding.Loader

Loader
public class Loader extends URLClassLoader (Code)
Binding classloader. This is intended to substitute for the System classloader (i.e., the one used for loading user classes). It first processes one or more binding definitions, caching the binary classes modified by the bindings. It then uses these modified forms of the classes when they're requested for loading.
author:
   Dennis M. Sosnoski
version:
   1.0

Inner Class :public static class NondelegatingLoader extends Loader


Constructor Summary
public  Loader(URL[] paths, ClassLoader parent)
     Constructor with classpath URLs and parent classloader supplied.
public  Loader(URL[] paths)
     Constructor with classpath URLs supplied.
public  Loader()
     Default constructor.

Method Summary
protected  ClassfindClass(String name)
     Find and load class by name.
public static  URL[]getClassPaths()
     Method builds an array of URL for items in the class path.
protected  booleanisBoundClass(String name)
     Check if a class has been modified by a binding.
public  voidloadBinding(String fname, String sname, InputStream is, URL url)
     Load binding definition.
public  voidloadFileBinding(String path)
     Load binding definition from file path.
public  voidloadResourceBinding(String path)
     Load binding definition from file path.
public  voidprocessBindings()
     Process the binding definitions.
public  voidreset()
     Reset loader information.


Constructor Detail
Loader
public Loader(URL[] paths, ClassLoader parent)(Code)
Constructor with classpath URLs and parent classloader supplied. Sets up the paths for both actual classloading and finding classes to be bound.
Parameters:
  paths - array of classpath URLs
Parameters:
  parent - classloader used for delegation loading



Loader
public Loader(URL[] paths)(Code)
Constructor with classpath URLs supplied. This uses the supplied classpaths, delegating directly to the parent classloader of the normal System classloader.
Parameters:
  paths - array of classpath URLs



Loader
public Loader() throws MalformedURLException(Code)
Default constructor. This reads the standard class path and uses it for locating classes used by the binding, delegating directly to the parent classloader of the normal System classloader.
exception:
  MalformedURLException - on error in classpath URLs




Method Detail
findClass
protected Class findClass(String name) throws ClassNotFoundException(Code)
Find and load class by name. If the named class has been modified by a binding this loads the modified binary class; otherwise, it just uses the base class implementation to do the loading. If bindings haven't been compiled prior to this call they will be compiled automatically when this method is called.
See Also:   java.lang.ClassLoader.findClass(java.lang.String)
Parameters:
  name - fully qualified package and class name to be found the loaded class
throws:
  ClassNotFoundException - if the class cannot be found



getClassPaths
public static URL[] getClassPaths() throws MalformedURLException(Code)
Method builds an array of URL for items in the class path. array of classpath URLs



isBoundClass
protected boolean isBoundClass(String name)(Code)
Check if a class has been modified by a binding. If bindings haven't been compiled prior to this call they will be compiled automatically when this method is called.
Parameters:
  name - fully qualified package and class name to be found true if class modified by binding,false if not



loadBinding
public void loadBinding(String fname, String sname, InputStream is, URL url) throws JiBXException, IOException(Code)
Load binding definition. This may be called multiple times to load multiple bindings, but only prior to the bindings being compiled. The reader form of the call is generally preferred, since the document encoding may not be properly interpreted from a stream.
Parameters:
  fname - binding definition full name
Parameters:
  sname - short form of name to use as the default name of the binding
Parameters:
  is - input stream for binding definition document
Parameters:
  url - URL for binding definition (null if notavailable)
exception:
  IllegalStateException - if called after bindings have beencompiled
exception:
  IOException - if error reading the binding
exception:
  JiBXException - if error in processing the binding definition



loadFileBinding
public void loadFileBinding(String path) throws JiBXException, IOException(Code)
Load binding definition from file path. This may be called multiple times to load multiple bindings, but only prior to the bindings being compiled.
Parameters:
  path - binding definition file path
exception:
  IllegalStateException - if called after bindings have beencompiled
exception:
  IOException - if error reading the file
exception:
  JiBXException - if error in processing the binding definition



loadResourceBinding
public void loadResourceBinding(String path) throws JiBXException, IOException(Code)
Load binding definition from file path. This may be called multiple times to load multiple bindings, but only prior to the bindings being compiled.
Parameters:
  path - binding definition file path
exception:
  IllegalStateException - if called after bindings have beencompiled
exception:
  IOException - if error reading the file
exception:
  JiBXException - if error in processing the binding definition



processBindings
public void processBindings() throws JiBXException(Code)
Process the binding definitions. This compiles the bindings into the classes, saving the modified classes for loading when needed.
exception:
  JiBXException - if error in processing the binding definition



reset
public void reset()(Code)
Reset loader information. This discards all prior bindings and clears the internal state in preparation for loading a different set of bindings. It is not possible to clear the loaded classes, though, so any new bindings must refer to different classes from those previously loaded.



Methods inherited from java.net.URLClassLoader
protected void addURL(URL url)(Code)(Java Doc)
protected Package definePackage(String name, Manifest man, URL url) throws IllegalArgumentException(Code)(Java Doc)
protected Class findClass(String name) throws ClassNotFoundException(Code)(Java Doc)
public URL findResource(String name)(Code)(Java Doc)
public Enumeration<URL> findResources(String name) throws IOException(Code)(Java Doc)
protected PermissionCollection getPermissions(CodeSource codesource)(Code)(Java Doc)
public URL[] getURLs()(Code)(Java Doc)
public static URLClassLoader newInstance(URL[] urls, ClassLoader parent)(Code)(Java Doc)
public static URLClassLoader newInstance(URL[] urls)(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.