org.apache.commons.jelly.tags.define
Class ClassLoaderTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.define.DefineTagSupport
org.apache.commons.jelly.tags.define.BeanTag
org.apache.commons.jelly.tags.define.ClassLoaderTag
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class ClassLoaderTag
- extends BeanTag
Creates a new URLClassLoader
to dynamically
load tags froms.
- Version:
- $Revision: 1.3 $
- Author:
- Stephen Haberman
Field Summary |
private static org.apache.commons.logging.Log |
log
The Log to which logging calls will be made. |
private java.lang.String |
url
The URL to load the classes from. |
private java.lang.String |
var
The name to export the classloader to. |
Fields inherited from class org.apache.commons.jelly.tags.define.BeanTag |
|
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
java.lang.String |
getUrl()
|
java.lang.String |
getVar()
|
void |
setUrl(java.lang.String url)
|
void |
setVar(java.lang.String var)
|
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.commons.logging.Log log
- The Log to which logging calls will be made.
var
private java.lang.String var
- The name to export the classloader to.
url
private java.lang.String url
- The URL to load the classes from.
ClassLoaderTag
public ClassLoaderTag()
getVar
public java.lang.String getVar()
- Returns:
- the variable to store the class loader in
setVar
public void setVar(java.lang.String var)
- Parameters:
var
- the variable to store the class loader in
getUrl
public java.lang.String getUrl()
- Returns:
- the url to load the classes from
setUrl
public void setUrl(java.lang.String url)
- Parameters:
url
- the url to load the classes from
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.MissingAttributeException,
org.apache.commons.jelly.JellyTagException
- Specified by:
doTag
in interface org.apache.commons.jelly.Tag
- Overrides:
doTag
in class BeanTag
- Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException