CVS: Tapestry/framework/src/net/sf/tapestry/engine AbstractEngine.java,1.34,1.35

Malcolm Edgar <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/engine
In directory sc8-pr-cvs1:/tmp/cvs-serv9921/framework/src/net/sf/tapestry/engine

Modified Files:
	AbstractEngine.java 
Log Message:
[660372] Add Global object

Index: AbstractEngine.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/engine/AbstractEngine.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** AbstractEngine.java	27 Nov 2002 17:58:51 -0000	1.34
--- AbstractEngine.java	2 Jan 2003 11:34:43 -0000	1.35
***************
*** 159,162 ****
--- 159,171 ----
  
      /**
+      *  The globally shared application object.
+      *
+      *  @since 2.3
+      *
+      **/
+ 
+     private transient Object _global;
+ 
+     /**
       *  The curent locale for the engine, which may be changed at any time.
       *
***************
*** 913,916 ****
--- 922,927 ----
       * <p>The context path is retrieved from {@link HttpServletRequest#getContextPath()}.
       *
+      * <p>The global object is retrieved from {@link RequestContext#getGlobal()} method.
+      *
       * <p>The final path is available via the {@link #getServletPath()} method.
       *
***************
*** 1076,1079 ****
--- 1087,1095 ----
              }
          }
+         
+         if (_global == null)
+         {
+             _global = context.getGlobal();
+         }
      }
  
***************
*** 1402,1405 ****
--- 1418,1426 ----
  
          return result;
+     }
+ 
+     public Object getGlobal()
+     {
+         return _global;    
      }
  



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.