public interface ThemeResourceProvider extends Provider
Modifier and Type | Method and Description |
---|---|
default Properties |
getMessages(String baseBundlename,
Locale locale)
Load the message bundle for the specific name and locale
|
InputStream |
getResourceAsStream(String path)
Load the resource for the specific path
|
URL |
getTemplate(String name)
Load the template for the specific name
|
URL getTemplate(String name) throws IOException
name
- the template nameIOException
InputStream getResourceAsStream(String path) throws IOException
path
- the resource pathIOException
default Properties getMessages(String baseBundlename, Locale locale) throws IOException
baseBundlename
- The base name of the bundle, such as "messages" in
messages_en.properties.locale
- The locale of the desired message bundle.IOException
- If bundle can not be read.Copyright © 2019 JBoss by Red Hat. All rights reserved.