Package net.solarnetwork.central.dao
Interface VersionedMessageDao
- All Known Implementing Classes:
MyBatisVersionedMessageDao
public interface VersionedMessageDao
DAO API for a resource bundle-like set of messages.
- Since:
- 2.6
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classMessages for a set of bundle names and locale, at a specific version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSpecial property key returned fromfindMessages(Instant, String[], String)that contains an ISO 8601 timestamp of the resolved messages version. -
Method Summary
Modifier and TypeMethodDescriptionfindMessages(Instant version, String[] bundleNames, String locale) Get all available messages for a specific version.
-
Field Details
-
VERSION_KEY
Special property key returned fromfindMessages(Instant, String[], String)that contains an ISO 8601 timestamp of the resolved messages version.- See Also:
-
-
Method Details
-
findMessages
Get all available messages for a specific version.Note that if any messages are resolved, the
VERSION_KEYvalue will be populated with the overall version of the returned messages.- Parameters:
version- the maximum version to get messages forbundleNames- the message bundle names to getlocale- the desired locale- Returns:
- the resolved messages
-