-
Notifications
You must be signed in to change notification settings - Fork 18
io microsphere i18n PropertiesResourceServiceMessageSource
github-actions[bot] edited this page May 21, 2026
·
12 revisions
Type: Class | Module: microsphere-i18n-core | Package: io.microsphere.i18n | Since: 1.0.0
Source:
microsphere-i18n-core/src/main/java/io/microsphere/i18n/PropertiesResourceServiceMessageSource.java
Properties Resource ServiceMessageSource Class that loads messages
from Java Properties files.
`// Typically used via DefaultServiceMessageSource
DefaultServiceMessageSource source = new DefaultServiceMessageSource("test");
source.init();
Properties props = source.loadAllProperties(Locale.ENGLISH);
// props contains {"test.a": "test-a", "test.hello": "Hello,{`"}
}
public abstract class PropertiesResourceServiceMessageSource extends AbstractResourceServiceMessageSourceAuthor: Mercy
-
Introduced in:
1.0.0 -
Current Project Version:
0.2.7-SNAPSHOT
This component is tested and compatible with the following Java versions:
| Java Version | Status |
|---|---|
| Java 17 | ✅ Compatible |
| Java 21 | ✅ Compatible |
| Java 25 | ✅ Compatible |
// Typically used via DefaultServiceMessageSource
DefaultServiceMessageSource source = new DefaultServiceMessageSource("test");
source.init();
Properties props = source.loadAllProperties(Locale.ENGLISH);
// props contains {"test.a": "test-a", "test.hello": "Hello,{}"}Properties props = source.loadAllProperties(Locale.ENGLISH);Add the following dependency to your pom.xml:
<dependency>
<groupId>io.github.microsphere-projects</groupId>
<artifactId>microsphere-i18n-core</artifactId>
<version>${microsphere-i18n.version}</version>
</dependency>Tip: Use the BOM (
microsphere-i18n-dependencies) for consistent version management. See the Getting Started guide.
import io.microsphere.i18n.PropertiesResourceServiceMessageSource;| Method | Description |
|---|---|
loadAllProperties |
Constructs with the given source identifier. |
loadAllProperties |
Loads all properties from the specified resource. |
This documentation was auto-generated from the source code of microsphere-i18n.
i18n-core
- AbstractResourceServiceMessageSource
- AbstractServiceMessageSource
- CompositeServiceMessageSource
- DefaultServiceMessageSource
- EmptyServiceMessageSource
- I18nUtils
- MessageUtils
- PropertiesResourceServiceMessageSource
- ReloadableResourceServiceMessageSource
- ResourceServiceMessageSource
- ServiceMessageException
- ServiceMessageSource
i18n-openfeign
i18n-spring
- AcceptHeaderLocaleResolverBeanPostProcessor
- DelegatingServiceMessageSource
- EnableI18n
- I18nApplicationListener
- I18nBeanUtils
- I18nConstants
- I18nImportBeanDefinitionRegistrar
- I18nLocalValidatorFactoryBeanPostProcessor
- LocaleUtils
- MessageSourceAdapter
- PropertySourcesServiceMessageSource
- ResourceServiceMessageSourceChangedEvent
- ServiceMessageSourceBeanLifecyclePostProcessor
- ServiceMessageSourceFactoryBean
i18n-spring-boot
i18n-spring-cloud
i18n-spring-cloud-server