Modifier and Type | Field and Description |
---|---|
protected java.util.Hashtable | cache |
protected int | cacheSize |
protected static LanguageRegistry | singleton |
Modifier and Type | Method and Description |
---|---|
void | addElement(java.lang.Integer langId, java.lang.Object bean)
This method adds a LanguageAccessBean to the local cache.
|
void | addElement(java.lang.Integer langId, java.lang.Object bean, java.util.Hashtable aCache)
This method adds a LanguageAccessBean to the given cache.
|
LanguageAccessBean | find(java.lang.Integer langId)
This method finds a Language object from the Language Registry.
|
java.util.Enumeration | getAll()
This method returns an Enumeration of all LanguageAccessBean objects defined.
|
java.lang.String | getEncoding(java.lang.Integer langId)
This method returns the encoding string associated with a language id.
|
java.util.Locale | getLocale(java.lang.Integer langId)
This method returns the locale associated with the Language object from the Language Registry.
|
void | initialize()
This method initializes the LanguageRegistry.
|
void | refresh()
This method refreshes the local cache of Language objects by retrieving them from the database.
|
void | removeAllElements()
This method removes all LanguageAccessBean objects from the local cache.
|
void | removeElement(java.lang.Integer langId)
This method removes an LanguageAccessBean object from the local cache.
|
static LanguageRegistry | singleton()
This method returns a singleton LanguageRegistry object
|
protected java.util.Hashtable cache
protected int cacheSize
protected static LanguageRegistry singleton
public void addElement(java.lang.Integer langId, java.lang.Object bean)
public void addElement(java.lang.Integer langId, java.lang.Object bean, java.util.Hashtable aCache)
public LanguageAccessBean find(java.lang.Integer langId)
public java.util.Enumeration getAll()
public java.lang.String getEncoding(java.lang.Integer langId)
public java.util.Locale getLocale(java.lang.Integer langId)
public void initialize() throws java.lang.Exception
public void refresh() throws java.lang.Exception
public void removeAllElements()
public void removeElement(java.lang.Integer langId)
public static LanguageRegistry singleton()