Java Doc for EnvironmentClassLoader.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » loader » 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 resin 3.1.5 » resin » com.caucho.loader 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.net.URLClassLoader
   com.caucho.loader.DynamicClassLoader
      com.caucho.loader.EnvironmentClassLoader

All known Subclasses:   com.caucho.loader.enhancer.EnhancingClassLoader,  com.caucho.loader.SystemClassLoader,
EnvironmentClassLoader
public class EnvironmentClassLoader extends DynamicClassLoader (Code)
Class loader which checks for changes in class files and automatically picks up new jars.

DynamicClassLoaders can be chained creating one virtual class loader. From the perspective of the JDK, it's all one classloader. Internally, the class loader chain searches like a classpath.




Constructor Summary
public  EnvironmentClassLoader()
     Creates a new environment class loader.
public  EnvironmentClassLoader(String id)
     Creates a new environment class loader.
public  EnvironmentClassLoader(ClassLoader parent)
     Creates a new environment class loader.
public  EnvironmentClassLoader(ClassLoader parent, String id)
     Creates a new environment class loader.

Method Summary
 voidaddChildListener(EnvironmentListener listener)
     Adds a child listener.
public  voidaddListener(EnvironmentListener listener)
     Adds a listener to detect environment lifecycle changes.
public  voidaddLoaderListener(AddLoaderListener listener)
     Adds a child listener.
public  voidaddScanListener(ScanListener listener)
     Adds a scan listener.
public  voidaddURL(URL url)
     Adds the URL to the URLClassLoader.
public  voiddestroy()
     Destroys the class loader.
public  ObjectgetAttribute(String name)
    
public  ThrowablegetConfigException()
     Gets the config exception.
protected  ArrayList<EnvironmentListener>getEnvironmentListeners()
     Returns the listeners.
protected  ArrayList<AddLoaderListener>getLoaderListeners()
     Returns the listeners.
public  EnvironmentBeangetOwner()
     Returns the environment's owner.
public  voidinit()
     Initialize the environment.
protected  voidinitEnvironment()
    
public static synchronized  voidinitializeEnvironment()
    
public  booleanisActive()
    
public  ObjectremoveAttribute(String name)
    
 voidremoveChildListener(EnvironmentListener listener)
     Removes a child listener.
public  voidremoveListener(EnvironmentListener listener)
     Adds a listener to detect environment lifecycle changes.
protected  voidreplace(EnvironmentClassLoader source)
     Copies the loader.
public  voidscan()
    
protected  voidsendAddLoaderEventImpl()
     Adds a listener to detect class loader changes.
public  ObjectsetAttribute(String name, Object obj)
    
public  voidsetConfigException(Throwable e)
     Sets the config exception.
public  voidsetOwner(EnvironmentBean owner)
     Sets the environment's owner.
public  voidstart()
     Marks the environment of the class loader as started.
public  voidstop()
     Stops the environment, closing down any resources.
public  StringtoString()
    
public  voidvalidate()
     Called when the completes.


Constructor Detail
EnvironmentClassLoader
public EnvironmentClassLoader()(Code)
Creates a new environment class loader.



EnvironmentClassLoader
public EnvironmentClassLoader(String id)(Code)
Creates a new environment class loader.



EnvironmentClassLoader
public EnvironmentClassLoader(ClassLoader parent)(Code)
Creates a new environment class loader.



EnvironmentClassLoader
public EnvironmentClassLoader(ClassLoader parent, String id)(Code)
Creates a new environment class loader.




Method Detail
addChildListener
void addChildListener(EnvironmentListener listener)(Code)
Adds a child listener.



addListener
public void addListener(EnvironmentListener listener)(Code)
Adds a listener to detect environment lifecycle changes.



addLoaderListener
public void addLoaderListener(AddLoaderListener listener)(Code)
Adds a child listener.



addScanListener
public void addScanListener(ScanListener listener)(Code)
Adds a scan listener.



addURL
public void addURL(URL url)(Code)
Adds the URL to the URLClassLoader.



destroy
public void destroy()(Code)
Destroys the class loader.



getAttribute
public Object getAttribute(String name)(Code)
Returns the named attributes



getConfigException
public Throwable getConfigException()(Code)
Gets the config exception.



getEnvironmentListeners
protected ArrayList<EnvironmentListener> getEnvironmentListeners()(Code)
Returns the listeners.



getLoaderListeners
protected ArrayList<AddLoaderListener> getLoaderListeners()(Code)
Returns the listeners.



getOwner
public EnvironmentBean getOwner()(Code)
Returns the environment's owner.



init
public void init()(Code)
Initialize the environment.



initEnvironment
protected void initEnvironment()(Code)



initializeEnvironment
public static synchronized void initializeEnvironment()(Code)
Initializes the environment



isActive
public boolean isActive()(Code)
Returns true if the environment is active



removeAttribute
public Object removeAttribute(String name)(Code)
Removes the named attributes



removeChildListener
void removeChildListener(EnvironmentListener listener)(Code)
Removes a child listener.



removeListener
public void removeListener(EnvironmentListener listener)(Code)
Adds a listener to detect environment lifecycle changes.



replace
protected void replace(EnvironmentClassLoader source)(Code)
Copies the loader.



scan
public void scan()(Code)



sendAddLoaderEventImpl
protected void sendAddLoaderEventImpl()(Code)
Adds a listener to detect class loader changes.



setAttribute
public Object setAttribute(String name, Object obj)(Code)
Sets the named attributes



setConfigException
public void setConfigException(Throwable e)(Code)
Sets the config exception.



setOwner
public void setOwner(EnvironmentBean owner)(Code)
Sets the environment's owner.



start
public void start()(Code)
Marks the environment of the class loader as started. The class loader itself doesn't use this, but a callback might.



stop
public void stop()(Code)
Stops the environment, closing down any resources. The resources are closed in the reverse order that they're started



toString
public String toString()(Code)



validate
public void validate()(Code)
Called when the completes.



Fields inherited from com.caucho.loader.DynamicClassLoader
final protected Lifecycle _lifecycle(Code)(Java Doc)

Methods inherited from com.caucho.loader.DynamicClassLoader
protected void addCodeBasePath(String path)(Code)(Java Doc)
public void addDependency(Dependency dependency)(Code)(Java Doc)
public void addJar(Path jar)(Code)(Java Doc)
public void addJarManifestClassPath(Path path) throws IOException(Code)(Java Doc)
final public void addListener(ClassLoaderListener listener)(Code)(Java Doc)
public void addLoader(Loader loader)(Code)(Java Doc)
public void addLoader(Loader loader, int offset)(Code)(Java Doc)
public void addManifestClassPath(String classPath, Path pwd)(Code)(Java Doc)
public void addNative(Path path)(Code)(Java Doc)
public void addParentPriorityPackage(String pkg)(Code)(Java Doc)
public void addParentPriorityPackages(String[] pkg)(Code)(Java Doc)
public void addPathClass(String className, Path path)(Code)(Java Doc)
public void addPermission(String path, String actions)(Code)(Java Doc)
public void addPermission(Permission permission)(Code)(Java Doc)
public void addPermissions(ArrayList<Permission> perms)(Code)(Java Doc)
public void addPriorityPackage(String pkg)(Code)(Java Doc)
public void addRoot(Path root)(Code)(Java Doc)
public void addTransformer(ClassFileTransformer transformer)(Code)(Java Doc)
public void addURL(Path path)(Code)(Java Doc)
public void addURL(URL url)(Code)(Java Doc)
public void addURL(int index, URL url)(Code)(Java Doc)
public void appendToClassPathForInstrumentation(String path)(Code)(Java Doc)
final protected void buildClassPath(StringBuilder head)(Code)(Java Doc)
final protected void buildResourcePathSpecificFirst(ArrayList<String> pathList)(Code)(Java Doc)
final protected void buildSourcePath(StringBuilder head)(Code)(Java Doc)
final public void clearModified()(Code)(Java Doc)
protected Package definePackage(String name, String a1, String a2, String a3, String b1, String b2, String b3, URL url)(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
protected Class findClass(String name) throws ClassNotFoundException(Code)(Java Doc)
protected Class findClassImpl(String name) throws ClassNotFoundException(Code)(Java Doc)
public String findLibrary(String name)(Code)(Java Doc)
public Path findPath(String name)(Code)(Java Doc)
public Enumeration<URL> findResources(String name)(Code)(Java Doc)
protected ClassEntry getClassEntry(String name) throws ClassNotFoundException(Code)(Java Doc)
final public String getClassPath()(Code)(Java Doc)
public long getDependencyCheckInterval()(Code)(Java Doc)
public static long getGlobalDependencyCheckInterval()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public ClassLoader getInstrumentableClassLoader()(Code)(Java Doc)
protected ArrayList<ClassLoaderListener> getListeners()(Code)(Java Doc)
public ArrayList<Loader> getLoaders()(Code)(Java Doc)
final public String getLocalClassPath()(Code)(Java Doc)
public ClassLoader getNewTempClassLoader()(Code)(Java Doc)
public ArrayList<Permission> getPermissions()(Code)(Java Doc)
protected PermissionCollection getPermissions(CodeSource codeSource)(Code)(Java Doc)
public URL getResource(String name)(Code)(Java Doc)
public InputStream getResourceAsStream(String name)(Code)(Java Doc)
final public String getResourcePathSpecificFirst()(Code)(Java Doc)
public SecurityManager getSecurityManager()(Code)(Java Doc)
final public String getSourcePath()(Code)(Java Doc)
public ClassLoader getThrowawayClassLoader()(Code)(Java Doc)
protected ArrayList<ClassFileTransformer> getTransformerList()(Code)(Java Doc)
public URL[] getURLs()(Code)(Java Doc)
public void init()(Code)(Java Doc)
public boolean isDestroyed()(Code)(Java Doc)
public static boolean isJarCacheEnabled()(Code)(Java Doc)
final public boolean isModified()(Code)(Java Doc)
final public boolean isModified(boolean enable)(Code)(Java Doc)
public static boolean isModified(ClassLoader loader)(Code)(Java Doc)
final public boolean isModifiedNow()(Code)(Java Doc)
public Class loadClass(String name) throws ClassNotFoundException(Code)(Java Doc)
protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException(Code)(Java Doc)
protected Class loadClass(ClassEntry entry) throws IOException, ClassNotFoundException(Code)(Java Doc)
protected Class loadClassImpl(String name, boolean resolve) throws ClassNotFoundException(Code)(Java Doc)
final public boolean logModified(Logger log)(Code)(Java Doc)
final public void make() throws Exception(Code)(Java Doc)
final public void removeListener(ClassLoaderListener listener)(Code)(Java Doc)
protected void replace(DynamicClassLoader source)(Code)(Java Doc)
final public void resetDependencyCheckInterval()(Code)(Java Doc)
public void scan()(Code)(Java Doc)
final protected void sendAddLoaderEvent()(Code)(Java Doc)
protected void sendAddLoaderEventImpl()(Code)(Java Doc)
public void setDependencyCheckInterval(long interval)(Code)(Java Doc)
public void setEnableDependencyCheck(boolean enable)(Code)(Java Doc)
public static void setGlobalDependencyCheckInterval(long interval)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public static void setJarCacheEnabled(boolean isEnabled)(Code)(Java Doc)
public static void setOldLoader(Thread thread, ClassLoader oldLoader)(Code)(Java Doc)
public void setServletHack(boolean servletHack)(Code)(Java Doc)
public void stop()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void validate() throws ConfigException(Code)(Java Doc)

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.