ASF Bugzilla – Attachment 30629 Details for
Bug 55309
Concurrent issue of TagPluginManager
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch on TagPluginManager
TagPluginManager.diff (text/plain), 1.90 KB, created by
Sheldon Shao
on 2013-07-26 04:38:23 UTC
(
hide
)
Description:
Patch on TagPluginManager
Filename:
MIME Type:
Creator:
Sheldon Shao
Created:
2013-07-26 04:38:23 UTC
Size:
1.90 KB
patch
obsolete
>Index: java/org/apache/jasper/compiler/TagPluginManager.java >=================================================================== >--- java/org/apache/jasper/compiler/TagPluginManager.java (revision 1507186) >+++ java/org/apache/jasper/compiler/TagPluginManager.java (working copy) >@@ -45,7 +45,6 @@ > private boolean initialized = false; > private HashMap<String, TagPlugin> tagPlugins = null; > private ServletContext ctxt; >- private PageInfo pageInfo; > > public TagPluginManager(ServletContext ctxt) { > this.ctxt = ctxt; >@@ -59,19 +58,26 @@ > return; > } > >- this.pageInfo = pageInfo; >- >- page.visit(new Node.Visitor() { >- @Override >- public void visit(Node.CustomTag n) >- throws JasperException { >- invokePlugin(n); >- visitBody(n); >- } >- }); >- >+ page.visit(new NodeVisitor(this, pageInfo)); > } > >+ private static class NodeVisitor extends Node.Visitor { >+ private TagPluginManager manager; >+ private PageInfo pageInfo; >+ >+ public NodeVisitor(TagPluginManager manager, PageInfo pageInfo) { >+ this.manager = manager; >+ this.pageInfo = pageInfo; >+ } >+ >+ @Override >+ public void visit(Node.CustomTag n) >+ throws JasperException { >+ manager.invokePlugin(n, pageInfo); >+ visitBody(n); >+ } >+ }; >+ > private void init(ErrorDispatcher err) throws JasperException { > if (initialized) > return; >@@ -180,7 +186,7 @@ > * > * The given custom tag node will be manipulated by the plugin. > */ >- private void invokePlugin(Node.CustomTag n) { >+ private void invokePlugin(Node.CustomTag n, PageInfo pageInfo) { > TagPlugin tagPlugin = tagPlugins.get(n.getTagHandlerClass().getName()); > if (tagPlugin == null) { > return;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 55309
: 30629