Author: shane.bryzak(a)jboss.com
Date: 2009-04-15 18:03:58 -0400 (Wed, 15 Apr 2009)
New Revision: 10429
Modified:
trunk/src/main/org/jboss/seam/security/Credentials.java
Log:
JBSEAM-3437
Modified: trunk/src/main/org/jboss/seam/security/Credentials.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/Credentials.java 2009-04-15 21:54:38 UTC (rev
10428)
+++ trunk/src/main/org/jboss/seam/security/Credentials.java 2009-04-15 22:03:58 UTC (rev
10429)
@@ -38,11 +38,21 @@
private boolean initialized;
+ public boolean isInitialized()
+ {
+ return initialized;
+ }
+
+ public void setInitialized(boolean initialized)
+ {
+ this.initialized = initialized;
+ }
+
public String getUsername()
{
- if (!initialized && Events.exists())
+ if (!isInitialized() && Events.exists())
{
- initialized = true;
+ setInitialized(true);
Events.instance().raiseEvent(EVENT_INIT_CREDENTIALS, this);
}
Show replies by date