|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.tkuhn.util.prefs.MetaInfoProvider
public abstract class MetaInfoProvider
This class describes Objects that can provide MetaInfo and Resources for given Preferences. It also implements singleton semantics for creating instances.
| Constructor Summary | |
|---|---|
MetaInfoProvider()
|
|
| Method Summary | |
|---|---|
static MetaInfoProvider |
getInstance()
Returns the MetaInfoProvider. |
abstract MetaInfo |
getMetaInfo(java.util.prefs.Preferences prefs)
Return the MetaInfo object corresponding to the given Preferences. |
abstract java.util.ResourceBundle |
getResources(java.util.prefs.Preferences prefs)
Return the Resource (eg internationalized Strings) that should be used together with the prefs. |
static void |
init(MetaInfoProvider provider)
Initializes the Singleton to be the given Object if not allready initialized. |
static MetaInfoProvider |
init(java.lang.String className)
Initializes the Singleton to be an Object of the given class-name and returns the instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaInfoProvider()
| Method Detail |
|---|
public abstract MetaInfo getMetaInfo(java.util.prefs.Preferences prefs)
prefs - the Preferences to retrieve MetaInformations for.
public abstract java.util.ResourceBundle getResources(java.util.prefs.Preferences prefs)
prefs - the Preferences to return Resources for.
public static MetaInfoProvider getInstance()
public static MetaInfoProvider init(java.lang.String className)
throws MetaInfoProviderInitializationException
className - the name of the class to be instantiated.
MetaInfoProviderInitializationException - if there is a problem like class not found etc. Look at the
cause for details.public static void init(MetaInfoProvider provider)
provider - the initial singleton instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||