[jboss-cvs] jboss-seam/src/main/org/jboss/seam/contexts ...
Norman Richards
norman.richards at jboss.com
Sat Dec 8 02:35:27 EST 2007
User: nrichards
Date: 07/12/08 02:35:27
Modified: src/main/org/jboss/seam/contexts Lifecycle.java
Log:
JBSEAM-2207
Revision Changes Path
1.107 +5 -1 jboss-seam/src/main/org/jboss/seam/contexts/Lifecycle.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Lifecycle.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/contexts/Lifecycle.java,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -b -r1.106 -r1.107
--- Lifecycle.java 17 Jul 2007 19:50:23 -0000 1.106
+++ Lifecycle.java 8 Dec 2007 07:35:27 -0000 1.107
@@ -31,13 +31,17 @@
public static Map<String, Object> getApplication()
{
- if (application==null)
+ if (!isApplicationInitialized())
{
throw new IllegalStateException("Attempted to invoke a Seam component outside the an initialized application");
}
return application;
}
+ public static boolean isApplicationInitialized() {
+ return application!=null;
+ }
+
public static void beginApplication(Map<String, Object> app)
{
application = app;
More information about the jboss-cvs-commits
mailing list