[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security ...
Shane Bryzak
Shane_Bryzak at symantec.com
Sun Feb 4 06:18:07 EST 2007
User: sbryzak2
Date: 07/02/04 06:18:07
Modified: src/main/org/jboss/seam/security Identity.java
Log:
Fix error message
Revision Changes Path
1.51 +5 -2 jboss-seam/src/main/org/jboss/seam/security/Identity.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Identity.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/Identity.java,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -b -r1.50 -r1.51
--- Identity.java 4 Feb 2007 09:36:45 -0000 1.50
+++ Identity.java 4 Feb 2007 11:18:07 -0000 1.51
@@ -54,6 +54,7 @@
private static final long serialVersionUID = 3751659008033189259L;
private static final LogProvider log = Logging.getLogProvider(Identity.class);
+ public static final String RULES_COMPONENT_NAME = "securityRules";
private String username;
private String password;
@@ -105,7 +106,7 @@
{
if (securityRules==null) //it might have been configured via components.xml
{
- securityRules = (RuleBase) Component.getInstance("securityRules", true);
+ securityRules = (RuleBase) Component.getInstance(RULES_COMPONENT_NAME, true);
}
if (securityRules != null)
{
@@ -270,7 +271,9 @@
{
if (securityContext==null)
{
- throw new IllegalStateException("no security rule base available - please install a RuleBase with the name 'securityContext'");
+ throw new IllegalStateException(
+ "no security rule base available - please install a RuleBase with the name '" +
+ RULES_COMPONENT_NAME + "'");
}
}
More information about the jboss-cvs-commits
mailing list