Skip to content

Commit

Permalink
Adapt Naming, adding scope
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Oct 23, 2023
1 parent 82e9360 commit d6a33da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.ResourceBundle;
import java.util.Set;

import javax.enterprise.context.Dependent;
import javax.faces.application.Application;
import javax.inject.Inject;

Expand All @@ -45,14 +46,15 @@
*
* @author Oliver Wolff
*/
@Dependent
@EqualsAndHashCode(callSuper = false)
@ToString
public class PortalResourceBundleBean extends ResourceBundle implements Serializable {

private static final long serialVersionUID = 3953649686127640297L;

/** Lookup name for el-expression within views: "msgs" */
public static final String BUBDLE_NAME = "msgs";
public static final String BUNDLE_NAME = "msgs";

@Inject
private ResourceBundleWrapper resourceBundleWrapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
*
* @author Oliver Wolff
*/
@Named
@RequestScoped
@EqualsAndHashCode(exclude = { "authenticationFacade", "servletRequestProvider" })
@ToString(exclude = { "authenticationFacade", "servletRequestProvider" })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void beforeEach(ExtensionContext context) throws Exception {
cdi = CDI.current();
} catch (IllegalStateException e) {
throw new IllegalStateException("""
CDI not present, maybe change the order of annotation and put @EnableAutoWeld above \
CDI not present, change the order of annotation and put @EnableAutoWeld above \
@EnablePortalConfiguration\
""", e);
}
Expand Down

0 comments on commit d6a33da

Please sign in to comment.