Commit 02f2b759fe522a2eef36cb0d3c8b5605b501c067
1 parent
337d7091
Exists in
master
Ajuste no carregamento do Bundle
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
impl/core/src/main/java/br/gov/frameworkdemoiselle/security/InvalidCredentialsException.java
1 | package br.gov.frameworkdemoiselle.security; | 1 | package br.gov.frameworkdemoiselle.security; |
2 | 2 | ||
3 | -import java.util.ResourceBundle; | ||
4 | - | ||
5 | import br.gov.frameworkdemoiselle.util.Beans; | 3 | import br.gov.frameworkdemoiselle.util.Beans; |
4 | +import br.gov.frameworkdemoiselle.util.NameQualifier; | ||
5 | +import br.gov.frameworkdemoiselle.util.ResourceBundle; | ||
6 | 6 | ||
7 | /** | 7 | /** |
8 | * Thrown when the user's credentials are invalid. | 8 | * Thrown when the user's credentials are invalid. |
@@ -14,7 +14,8 @@ public class InvalidCredentialsException extends AuthenticationException { | @@ -14,7 +14,8 @@ public class InvalidCredentialsException extends AuthenticationException { | ||
14 | private static final long serialVersionUID = 1L; | 14 | private static final long serialVersionUID = 1L; |
15 | 15 | ||
16 | public InvalidCredentialsException() { | 16 | public InvalidCredentialsException() { |
17 | - super(Beans.getReference(ResourceBundle.class).getString("invalid-credentials")); | 17 | + super(Beans.getReference(ResourceBundle.class, new NameQualifier("demoiselle-core-bundle")).getString( |
18 | + "invalid-credentials")); | ||
18 | } | 19 | } |
19 | 20 | ||
20 | /** | 21 | /** |