quintonm 2003/03/21 14:44:55
Modified: src/java/org/apache/turbine/services/pull
TurbinePullService.java
Log:
updated javadocs to indicate that persistent scope tools are deprecated. A warning
level
log message will be written if a persistent scope tool is added to the context.
Revision Changes Path
1.24 +4 -4
jakarta-turbine-2/src/java/org/apache/turbine/services/pull/TurbinePullService.java
Index: TurbinePullService.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/pull/TurbinePullService.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- TurbinePullService.java 21 Mar 2003 15:40:42 -0000 1.23
+++ TurbinePullService.java 21 Mar 2003 22:44:54 -0000 1.24
@@ -76,15 +76,13 @@
import org.apache.velocity.context.Context;
/**
- * <p>
* This is the concrete implementation of the Turbine
* Pull Service.
- * </p>
* <p>
* These are tools that are placed in the context by the service
* These tools will be made available to all your
* templates. You list the tools in the following way:
- * </p>
+ * <p>
* <pre>
* tool.<scope>.<id> = <classname>
*
@@ -142,6 +140,7 @@
* This means for a logged in user the tool will be persisted
* in the user's objectdata. Tool should be Serializable. These
* tools do not need to be threadsafe.
+ * <b>persistent scope tools are deprecated in 2.3</b>
*
* Defaults: none
* </pre>
@@ -629,6 +628,7 @@
// put the tool in the context
log.debug("Adding " + tool + " to ctx as "
+ toolData.toolName);
+ log.warn("Persistent scope tools are deprecated.");
context.put(toolData.toolName, tool);
}
else
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]