/** * @return the tag to be evaluated, creating it lazily if required. */ public Tag getTag(JellyContext context) throws JellyException { Thread t = Thread.currentThread(); Tag tag = (Tag) threadLocalTagCache.get(t); if ( tag == null ) { tag = createTag(); if ( tag != null ) { threadLocalTagCache.put(t,tag); configureTag(tag,context); } } return tag; }
/** * @return the tag to be evaluated, creating it lazily if required. */ public Tag getTag(JellyContext context) throws JellyException { Thread t = Thread.currentThread(); Tag tag = (Tag) threadLocalTagCache.get(t); if ( tag == null ) { tag = createTag(); if ( tag != null ) { threadLocalTagCache.put(t,tag); configureTag(tag,context); } } return tag; }
/** * @return the tag to be evaluated, creating it lazily if required. */ public Tag getTag(JellyContext context) throws JellyException { Thread t = Thread.currentThread(); Tag tag = (Tag) threadLocalTagCache.get(t); if ( tag == null ) { tag = createTag(); if ( tag != null ) { threadLocalTagCache.put(t,tag); configureTag(tag,context); } } return tag; }
/** * @return the tag to be evaluated, creating it lazily if required. */ public Tag getTag(JellyContext context) throws JellyException { if (context.isCacheTags()) { Thread t = Thread.currentThread(); Tag tag = (Tag) threadLocalTagCache.get(t); if ( tag == null ) { tag = createTag(); if ( tag != null) { threadLocalTagCache.put(t,tag); configureTag(tag,context); } } return tag; } else { Tag tag = createTag(); if (tag!=null) configureTag(tag,context); return tag; } }