You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2004/02/20 10:40:16 UTC
cvs commit: cocoon-2.2/src/java/org/apache/cocoon/environment/internal EnvironmentHelper.java EnvironmentContext.java
cziegeler 2004/02/20 01:40:15
Modified: src/java/org/apache/cocoon/environment/internal
EnvironmentHelper.java EnvironmentContext.java
Log:
Add some comments about future changes :)
Revision Changes Path
1.7 +8 -2 cocoon-2.2/src/java/org/apache/cocoon/environment/internal/EnvironmentHelper.java
Index: EnvironmentHelper.java
===================================================================
RCS file: /home/cvs/cocoon-2.2/src/java/org/apache/cocoon/environment/internal/EnvironmentHelper.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- EnvironmentHelper.java 6 Feb 2004 11:42:46 -0000 1.6
+++ EnvironmentHelper.java 20 Feb 2004 09:40:15 -0000 1.7
@@ -89,7 +89,9 @@
implements SourceResolver, Serviceable, Disposable {
/** The key used to store the current redirector
- * in the environment context */
+ * in the environment context
+ * TODO: THIS WILL BE REMOVED SOON
+ * */
private static final String REDIRECTOR_KEY = "global:" + Redirector.class.getName();
/** The key used to store the current environment context
@@ -405,6 +407,7 @@
stack.pushInfo(new EnvironmentInfo(processor, stack.getOffset(), manager, env));
stack.setOffset(stack.size()-1);
+ // TODO: THIS WILL BE REMOVED SOON
EnvironmentContext ctx = (EnvironmentContext)env.getObjectModel().get(PROCESS_KEY);
ForwardRedirector redirector = new ForwardRedirector(env);
@@ -457,6 +460,7 @@
/**
* Return the environment context
+ * TODO: THIS WILL BE REMOVED SOON
*/
public static EnvironmentContext getCurrentEnvironmentContext() {
final EnvironmentStack stack = (EnvironmentStack) environmentStack.get();
@@ -470,6 +474,7 @@
/**
* Return the Redirector
+ * TODO: THIS WILL BE REMOVED SOON
*/
public static Redirector getRedirector(Environment env) {
final EnvironmentContext ctx = getEnvironmentContext(env);
@@ -481,6 +486,7 @@
/**
* Return the environment context
+ * TODO: THIS WILL BE REMOVED SOON
*/
public static EnvironmentContext getEnvironmentContext(Environment environment) {
final Map objectModel = environment.getObjectModel();
1.2 +3 -1 cocoon-2.2/src/java/org/apache/cocoon/environment/internal/EnvironmentContext.java
Index: EnvironmentContext.java
===================================================================
RCS file: /home/cvs/cocoon-2.2/src/java/org/apache/cocoon/environment/internal/EnvironmentContext.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- EnvironmentContext.java 10 Jan 2004 14:38:19 -0000 1.1
+++ EnvironmentContext.java 20 Feb 2004 09:40:15 -0000 1.2
@@ -72,6 +72,8 @@
* processing of the environment is finished. If you don't want to
* dispose an object, use a key that starts with "global:"!
*
+ * TODO: THIS WILL BE REMOVED SOON
+ *
* @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
* @version CVS $Id$
* @since 2.2