public class LocalizedResourceFinder extends java.lang.Object
ClassResolver
.Constructor and Description |
---|
LocalizedResourceFinder(ClassResolver resolver) |
Modifier and Type | Method and Description |
---|---|
LocalizedResource |
resolve(java.lang.String resourcePath,
java.util.Locale locale)
Resolves the resource, returning a path representing
the closest match (with respect to the provided locale).
|
public LocalizedResourceFinder(ClassResolver resolver)
public LocalizedResource resolve(java.lang.String resourcePath, java.util.Locale locale)
The provided path is split into a base path and a suffix (at the last period character). The locale will provide different suffixes to the base path and the first match is returned.