Classloaders |
|
|
|
class-loader |
|
|
|
child of: resin, server, host-default, host, web-app-default, web-app |
Resin 3.0 |
|
|
|
다이나믹클래스로더를 현재 environment에 추가합니다.
각 environment(<server>,<host>,<web-app>은 다이나믹 클래스로더를 추가할 수 있습니다. environment는 부모 클래스로더를 상속합니다. 각 <class-loader>는 몇몇 항목으로 구성됩니다. 예로 WEB-INF/lib와 같은 library-loader, WEB-INF/classes 같은 compiling-loader, 더욱 복잡한 자동 컴파일을 위한 make-loader와 같은 것들이 제공됩니다. |
|
|
|
|
|
<web-app> <class-loader> <compiling-loader path="WEB-INF/classes"/>
<library-loader path="WEB-INF/lib"/> </class-loader> </web-app> |
|
|
|
만일 web-app 에서 access-log를 설정하지 않았다면 host의 설정을 이용하게 됩니다. |
|
|
|
compiling-loader |
|
|
|
child of: class-loader |
Resin 3.0 |
|
|
|
WEB-INF/classes 형태의 자동컴파일링 클래스로더를 설정합니다.
compiling-loader는 java코드를 .class파일로 컴파일하여 로딩합니다. |
|
|
|
Attribute |
Meaning |
default |
|
args |
Additional arguments to be passed to the Java compiler. Resin 3.0 |
none |
|
batch |
If true, multiple changed *.java files will be compiled in a single batch. Resin 3.0.7 |
true |
|
encoding |
I18N encoding for the Java compiler. Since Resin 3.0 |
none |
|
path |
Filesystem path for the class loader. Since Resin 3.0 |
required |
|
source |
Java source directory. Since Resin 3.0 |
value of path |
|
require-source |
If true, .class files without matching .java files will be deleted. Since Resin 3.0 |
false |
|
|
|
|
|
library-loader |
|
|
|
child of: class-loader |
Resin 3.0 |
|
|
|
WEB-INF/lib 형태의 클래스로더를 설정합니다.
library-loader는 현재의 클래스패스에 jar파일이나 zip파일을 추가합니다. |
|
|
|
Attribute |
Meaning |
default |
|
path |
Filesystem path for the class loader. Since Resin 3.0 |
required |
|
class com.caucho.loader.DirectoryLoader를 참조하세요 |
|
|
|
|
|
tree-loader |
|
|
|
child of: class-loader |
Resin 3.0 |
|
|
|
<library-loader>와 유사한 WEB-INF/lib 형태의 클래스로더이지만, 하위 디렉토리의 .jar파일과 .zip파일을 포함하는 jar 라이브러리를 설정합니다. |
|
|
|
Attribute |
Meaning |
default |
|
path |
Filesystem path for the class loader. Since Resin 3.0 |
required |
|
class com.caucho.loader.TreeLoader를 참조하세요 |
|
|
|
|
|
make-loader |
|
|
|
child of: class-loader |
Resin 3.0 |
|
|
|
커스텀 make 형태의 loader를 설정합니다. |
|
|
|
|
|
servlet-hack |
|
|
|
child of: class-loader |
Resin 3.0 |
|
|
|
servlet-hack의 이용은 권장되지 않습니다. servlet-hack의 이용은 JDK 클래스로더 위임모델을 위반하는 것이며, ClassCastExceptions과 같은 상황에 부딪힐 수 있습니다.
ClassCastExceptions는 일반적인 클래스로더의 순서를 바꾸는 것으로 부모클래스로더가 우선순위를 갖는 대신에 자식클래스로더가 운선순의를 갖게됩니다. |
|
|
|
|
|
simple-loader |
|
|
|
child of: class-loader |
Resin 3.0 |
|
|
|
간단한 classes 형태의 클래스로더를 설정합니다.
특정 디렉토리내부의 .class 파일들은 특별한 컴파일 과정없이 로딩됩니다. |
|
|
|
Attribute |
Meaning |
default |
|
path |
Filesystem path for the class loader. Since Resin 3.0 |
required |
|
prefix |
Class package prefix to only load to a subset of classes. Resin 3.0 |
none |