public class AuthResourceBundle
extends java.util.ResourceBundle
Modifier and Type | Class and Description |
---|---|
static interface |
AuthResourceBundle.Content
Defines the keys and value types required for a bundle of this class.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
logger_ |
private java.util.Hashtable |
map_ |
Modifier | Constructor and Description |
---|---|
|
AuthResourceBundle()
Constructs default (English) instance.
|
protected |
AuthResourceBundle(AuthResourceBundle.Content content)
Constructs a bundle based on a Content implementation.
|
Modifier and Type | Method and Description |
---|---|
(package private) static void |
checkHasAllKeys(java.util.ResourceBundle bundle)
Determines if a bundle has all the required keys for this class.
|
static AuthResourceBundle.Content |
getAuthContent(java.util.ResourceBundle bundle)
Returns a Content object based on a bundle which has the keys
that AuthResourceBundle is supposed to have.
|
(package private) static java.lang.reflect.Method[] |
getContentMethods()
Returns all the methods of the Content interface which correspond
to AuthResourceBundle entries.
|
private static AuthResourceBundle.Content |
getDefaultContent()
Returns a default Content implementation.
|
java.util.Enumeration |
getKeys() |
protected java.lang.Object |
handleGetObject(java.lang.String key) |
static void |
main(java.lang.String[] args)
Writes a template .properties file.
|
private static java.lang.String |
toPropertyString(AuthResourceBundle.Content content,
java.lang.reflect.Method method)
Returns a string suitable for entry into a .properties file
for a given Method of a given Content object.
|
private final java.util.Hashtable map_
private static final java.util.logging.Logger logger_
public AuthResourceBundle()
protected AuthResourceBundle(AuthResourceBundle.Content content)
content
- contains information required for bundleprotected final java.lang.Object handleGetObject(java.lang.String key)
handleGetObject
in class java.util.ResourceBundle
public final java.util.Enumeration getKeys()
getKeys
in class java.util.ResourceBundle
public static AuthResourceBundle.Content getAuthContent(java.util.ResourceBundle bundle)
bundle
- resource bundlestatic java.lang.reflect.Method[] getContentMethods()
static void checkHasAllKeys(java.util.ResourceBundle bundle)
bundle
- bundle to testprivate static AuthResourceBundle.Content getDefaultContent()
private static java.lang.String toPropertyString(AuthResourceBundle.Content content, java.lang.reflect.Method method)
content
- auth resource contentmethod
- Content method (public String x())public static void main(java.lang.String[] args)