public interface ResourceBundleService
| Modifier and Type | Method and Description |
|---|---|
ResourceBundleData |
createResourceBundleDataInstance()
This method is acted as a factory of
|
PageList<ResourceBundleData> |
findResourceDescriptions(Query q)
This method search and return a page description iterator
|
ResourceBundle |
getResourceBundle(String[] name,
Locale locale)
This method will call the method public ResourceBundle getResourceBundle(String[] name, Locale locale, ClassLoader cl)
and using the the classloader of the current thread
|
ResourceBundle |
getResourceBundle(String[] name,
Locale locale,
ClassLoader cl)
This method will look for all the resources with the given names and merge into one resource bundle, the properties in
the later resource bundle name will have the higher priority than the previous one.
|
ResourceBundle |
getResourceBundle(String name,
Locale locale)
This method should search for a template in the database that the service manage or the resource in the classpath of the
current thread class loader
|
ResourceBundle |
getResourceBundle(String name,
Locale locale,
ClassLoader cl)
This method should search for a template in the database that the service manage or the resource in the classpath of the
specified class loader
|
ResourceBundleData |
getResourceBundleData(String id)
This method should look for a resource bundle in the database that match the given id.
|
String[] |
getSharedResourceBundleNames()
The developer can store the common properties in certain resource bundles so later he can merge a resource bundle with
the shared resource bunldes
|
ResourceBundleData |
removeResourceBundleData(String id)
This method remove the data record in the databas and return the data instance after it has been removed
|
void |
saveResourceBundle(ResourceBundleData data)
This method shoudl create or update a ResourceBundleData instance
|
ResourceBundle getResourceBundle(String name, Locale locale)
name - The name of the resource bunldelocale - the localeResourceBundle getResourceBundle(String name, Locale locale, ClassLoader cl)
name - the name of the resourcelocale - the localecl - The classloaderResourceBundle getResourceBundle(String[] name, Locale locale)
ResourceBundle getResourceBundle(String[] name, Locale locale, ClassLoader cl)
ResourceBundleData getResourceBundleData(String id)
id - The id of the resource bundle dataResourceBundleData removeResourceBundleData(String id)
id - The id of the data recordvoid saveResourceBundle(ResourceBundleData data)
data - the ResourceBundleData instance to update or createPageList<ResourceBundleData> findResourceDescriptions(Query q)
q - The search criteriaResourceBundleData createResourceBundleDataInstance()
String[] getSharedResourceBundleNames()
Copyright © 2018 JBoss by Red Hat. All Rights Reserved.