이 콘텐츠는 선택한 언어로 제공되지 않습니다.
9.3. ClassLoading VFS
These examples provide an implementation of the
ClassLoaderPolicy
that uses a JBoss Virtual File System project to load classes and resources. You can use this idea directly or in combination with a classloading framework.
Optionally, you can set up your modules inside the Microcontainer configuration.
Example 9.14. Classloading Module Deployer
The
VFSClassLoaderFactory
class transforms the XML deployer into a VFSClassLoaderPolicyModule
, which then creates the actual ClassLoader
instance. You can then directly use this new ClassLoader
instance with your beans.
Note
VFSClassLoaderFactory
extends ClassLoadingMetaData
, so all examples pertaining to ClassLoadingMetaData
apply in this case as well.