|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.internal.macro.script.DefaultAttachmentClassLoaderFactory
@Component public class DefaultAttachmentClassLoaderFactory
Supports the following syntax for JARs attached to wiki pages:
attach:(wiki):(space).(page)@(attachment).
| Constructor Summary | |
|---|---|
DefaultAttachmentClassLoaderFactory()
|
|
| Method Summary | |
|---|---|
ExtendedURLClassLoader |
createAttachmentClassLoader(java.lang.String jarURLs,
java.lang.ClassLoader parent)
|
void |
extendAttachmentClassLoader(java.lang.String jarURLs,
ExtendedURLClassLoader source)
Augment the passed classloader with the JARs definitions passed as parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAttachmentClassLoaderFactory()
| Method Detail |
|---|
public ExtendedURLClassLoader createAttachmentClassLoader(java.lang.String jarURLs,
java.lang.ClassLoader parent)
throws java.lang.Exception
createAttachmentClassLoader in interface AttachmentClassLoaderFactoryjarURLs - the comma-separated lists of URLs pointing to the JARs that should be made visible in the
classloader.parent - the parent classloader in which to look first for a resource/class
java.lang.Exception - in case of an error, for example if an attachment cannot be loadedAttachmentClassLoaderFactory.createAttachmentClassLoader(String, ClassLoader)
public void extendAttachmentClassLoader(java.lang.String jarURLs,
ExtendedURLClassLoader source)
throws java.lang.Exception
extendAttachmentClassLoader in interface AttachmentClassLoaderFactoryjarURLs - the comma-separated lists of URLs pointing to the JARs that should be made visible in the
classloader.source - the classloader to augment
java.lang.Exception - in case of an error, for example if an attachment cannot be loadedAttachmentClassLoaderFactory.extendAttachmentClassLoader(String, ExtendedURLClassLoader)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||