Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cuioss committed Jan 10, 2024
1 parent 1d4fbc8 commit dbb359e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,21 @@
*/
package de.cuioss.portal.configuration.impl.bundles;

import static de.cuioss.portal.configuration.PortalConfigurationDefaults.CUSTOM_BUNDLE_PATH;
import de.cuioss.portal.common.bundle.ResourceBundleLocator;
import de.cuioss.portal.common.priority.PortalPriorities;
import de.cuioss.tools.logging.CuiLogger;
import lombok.EqualsAndHashCode;

import javax.annotation.PostConstruct;
import javax.annotation.Priority;
import javax.enterprise.context.ApplicationScoped;
import java.io.Serial;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.Optional;
import java.util.ResourceBundle;

import javax.annotation.PostConstruct;
import javax.annotation.Priority;
import javax.enterprise.context.ApplicationScoped;

import de.cuioss.portal.common.bundle.ResourceBundleLocator;
import de.cuioss.portal.common.priority.PortalPriorities;
import de.cuioss.tools.logging.CuiLogger;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import static de.cuioss.portal.configuration.PortalConfigurationDefaults.CUSTOM_BUNDLE_PATH;

/**
* Defines the vendor specific bundle to be defined within a portal application,
Expand All @@ -42,11 +41,11 @@
@Priority(PortalPriorities.PORTAL_ASSEMBLY_LEVEL + 10)
@ApplicationScoped
@EqualsAndHashCode
@ToString
public class PortalVendorResourceBundleLocator implements ResourceBundleLocator {

private static final CuiLogger log = new CuiLogger(PortalVendorResourceBundleLocator.class);

@Serial
private static final long serialVersionUID = -8478481710191113463L;

private String bundle;
Expand Down
2 changes: 1 addition & 1 deletion modules/configuration/portal-configuration-yaml/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<artifactId>portal-configuration-yaml</artifactId>
<name>Portal Configuration yaml</name>
<description>Provides support for mircroprofile-config.yml</description>
<description>Provides support for microprofile-config.yml</description>
<properties>
<maven.jar.plugin.automatic.module.name>
de.cuioss.portal.configuration.yaml</maven.jar.plugin.automatic.module.name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public interface ResourceBundleLocator extends Serializable {
/**
* @return paths of the resource bundles if it can be loaded. <em>Caution: </em>
* {@link ResourceBundleRegistry} assumes that only loadable paths are
* to be returned. Therefore each implementation must take care.
* to be returned. Therefore, each implementation must take care.
*/
Optional<String> getBundlePath();

Expand Down

0 comments on commit dbb359e

Please sign in to comment.