freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [1/4] incubator-freemarker git commit: (Added some JavaDoc comments to JSP code)
Date Sun, 27 Mar 2016 10:03:29 GMT
Repository: incubator-freemarker
Updated Branches:
  refs/heads/2.3 8eada2e9d -> d809cae0b


(Added some JavaDoc comments to JSP code)


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/25465f07
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/25465f07
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/25465f07

Branch: refs/heads/2.3
Commit: 25465f0783ae8cb37707c884f2be37eaae6c755c
Parents: 9299036
Author: ddekany <ddekany@apache.org>
Authored: Sun Mar 27 11:51:27 2016 +0200
Committer: ddekany <ddekany@apache.org>
Committed: Sun Mar 27 11:51:27 2016 +0200

----------------------------------------------------------------------
 src/main/java/freemarker/ext/jsp/SimpleTagDirectiveModel.java | 2 ++
 src/main/java/freemarker/ext/jsp/TagTransformModel.java       | 3 +++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/25465f07/src/main/java/freemarker/ext/jsp/SimpleTagDirectiveModel.java
----------------------------------------------------------------------
diff --git a/src/main/java/freemarker/ext/jsp/SimpleTagDirectiveModel.java b/src/main/java/freemarker/ext/jsp/SimpleTagDirectiveModel.java
index de3781e..9c802fb 100644
--- a/src/main/java/freemarker/ext/jsp/SimpleTagDirectiveModel.java
+++ b/src/main/java/freemarker/ext/jsp/SimpleTagDirectiveModel.java
@@ -38,6 +38,8 @@ import freemarker.template.TemplateException;
 import freemarker.template.TemplateModel;
 
 /**
+ * Adapts a {@link SimpleTag}-based custom JSP tag to be a value that's callable in templates
as an user-defined
+ * directive. For {@link Tag}-based custom JSP tags {@link TagTransformModel} is used instead.
  */
 class SimpleTagDirectiveModel extends JspTagModelBase implements TemplateDirectiveModel {
     protected SimpleTagDirectiveModel(String tagName, Class tagClass) throws IntrospectionException
{

http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/25465f07/src/main/java/freemarker/ext/jsp/TagTransformModel.java
----------------------------------------------------------------------
diff --git a/src/main/java/freemarker/ext/jsp/TagTransformModel.java b/src/main/java/freemarker/ext/jsp/TagTransformModel.java
index b184a7e..a69d5ec 100644
--- a/src/main/java/freemarker/ext/jsp/TagTransformModel.java
+++ b/src/main/java/freemarker/ext/jsp/TagTransformModel.java
@@ -32,6 +32,7 @@ import javax.servlet.jsp.JspWriter;
 import javax.servlet.jsp.tagext.BodyContent;
 import javax.servlet.jsp.tagext.BodyTag;
 import javax.servlet.jsp.tagext.IterationTag;
+import javax.servlet.jsp.tagext.SimpleTag;
 import javax.servlet.jsp.tagext.Tag;
 import javax.servlet.jsp.tagext.TryCatchFinally;
 
@@ -41,6 +42,8 @@ import freemarker.template.TemplateTransformModel;
 import freemarker.template.TransformControl;
 
 /**
+ * Adapts a {@link Tag}-based custom JSP tag to be a value that's callable in templates as
an user-defined directive.
+ * For {@link SimpleTag}-based custom JSP tags {@link SimpleTagDirectiveModel} is used instead.
  */
 class TagTransformModel extends JspTagModelBase implements TemplateTransformModel {
     private static final Logger LOG = Logger.getLogger("freemarker.jsp");


Mime
View raw message