|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.TagLibrary
org.kohsuke.stapler.jelly.ReallyStaticTagLibrary
public class ReallyStaticTagLibrary
Jelly tag library for static tags.
Unlike StaticTagScript
, this doesn't even try to see if the tag name is available as a dynamic tag.
By not doing so, this implementation achieves a better performance both in speed and memory usage.
Jelly by default uses StaticTagScript
instance to represent a tag that's parsed as a static tag,
and for each invocation, this code checks if the tag it represents is now defined as a dynamic tag.
Plus it got the code to cache StaticTag
instances per thread, which consumes more space and time.
Field Summary | |
---|---|
static boolean |
EMIT_LOCATION
If true, emit the location information. |
static org.apache.commons.jelly.TagLibrary |
INSTANCE
Reusable instance. |
Constructor Summary | |
---|---|
ReallyStaticTagLibrary()
|
Method Summary | |
---|---|
org.apache.commons.jelly.Tag |
createTag(java.lang.String name,
org.xml.sax.Attributes attributes)
IIUC, this method will never be invoked. |
static org.apache.commons.jelly.impl.TagScript |
createTagScript()
Creates a new instance of TagScript that generates a literal element. |
org.apache.commons.jelly.impl.TagScript |
createTagScript(java.lang.String tagName,
org.xml.sax.Attributes atts)
|
Methods inherited from class org.apache.commons.jelly.TagLibrary |
---|
createExpression, getExpressionFactory, getTagClasses, registerTag, registerTagFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.jelly.TagLibrary INSTANCE
public static boolean EMIT_LOCATION
Constructor Detail |
---|
public ReallyStaticTagLibrary()
Method Detail |
---|
public org.apache.commons.jelly.Tag createTag(java.lang.String name, org.xml.sax.Attributes attributes) throws org.apache.commons.jelly.JellyException
createTag
in class org.apache.commons.jelly.TagLibrary
org.apache.commons.jelly.JellyException
public org.apache.commons.jelly.impl.TagScript createTagScript(java.lang.String tagName, org.xml.sax.Attributes atts) throws org.apache.commons.jelly.JellyException
createTagScript
in class org.apache.commons.jelly.TagLibrary
org.apache.commons.jelly.JellyException
public static org.apache.commons.jelly.impl.TagScript createTagScript()
TagScript
that generates a literal element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |