environment: class loaders
Resin organizes resources and classloaders into nested environments. Each environment context merges its own configuration with configuration inherited from the parent environment. Each environment context: server, host, web-app, etc. may be configured with any of the environment configuration tags. Adds dynamic classloaders to the current environment. Each environment (<server>, <host>, <web-app>) etc, can add dynamic classloaders. The environment will inherit the parent classloaders. Each <class-loader> is comprised of several implementing loader items: library-loader for WEB-INF/lib, compiling-loader for WEB-INF/classes, even make-loader for more complex auto-compilation. <web-app xmlns="http://caucho.com/ns/resin"> <prologue> <class-loader> <compiling-loader path="WEB-INF/classes"/> <library-loader path="WEB-INF/lib"/> </class-loader> </prologue> </web-app> child of class-loader
Configures an auto-compiling -style class loader.The compiling-loader will automatically compile Java code into .class files loading them.
child of class-loader
Configures a jar library, -style class loader.The library-loader will add jar files in its path to the current classpath.
Jar files are recognized when they have a filename extension of
See com.caucho.loader.DirectoryLoader. child of class-loader
Configures a jar library, library-loader, but will also find
See com.caucho.loader.TreeLoader. child of class-loader
Configures a custom make-style loader. child of class-loader
Use of servlet-hack is discouraged. Using servlet-hack violates the JDK's classloader delegation model and can produce surprising ClassCastExceptions. servlet-hack reverses the normal class loader order. Instead of parent classloaders having priority, child classloaders have priority. child of class-loader
Configures a simple -style class loader..class files in the specified directory will be loaded without any special compilation steps (in contrast with compiling-loader.)
|