public class UserPreferencesEnumerator extends AbstractLogEnabled implements Enumerator, Contextualizable, Serviceable
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The avalon context
|
protected UserPreferencesExtensionPoint |
_userPrefEP
The user preferences extension point.
|
Constructor and Description |
---|
UserPreferencesEnumerator() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
protected Map<String,String> |
getContextVars()
Get the preferences context variables.
|
Map<Object,I18nizableText> |
getEntries()
Provides the enumerated values with their optional label.
|
I18nizableText |
getEntry(String value)
Retrieves a single label from a value.
|
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration
protected UserPreferencesExtensionPoint _userPrefEP
public UserPreferencesEnumerator()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
ServiceException
public Map<Object,I18nizableText> getEntries() throws Exception
Enumerator
getEntries
in interface Enumerator
Exception
- if an error occurs.public I18nizableText getEntry(String value) throws Exception
Enumerator
getEntry
in interface Enumerator
value
- the value.null
if not found.Exception
- if an error occurs.protected Map<String,String> getContextVars()