public interface IContextSingletonProvider
| Modifier and Type | Method and Description |
|---|---|
<VALUE_TYPE,CONTEXT_TYPE> |
get(CONTEXT_TYPE context,
IContextSingletonFactory<VALUE_TYPE,CONTEXT_TYPE> factory)
Gets a value for a defined context.
|
void |
removeReference(java.lang.Object context)
Removes the reference from the provider if one exists.
|
<VALUE_TYPE,CONTEXT_TYPE> VALUE_TYPE get(CONTEXT_TYPE context,
IContextSingletonFactory<VALUE_TYPE,CONTEXT_TYPE> factory)
context - The context to get the singleton for (must not be null)factory - The factory to create the context with if not exists (must not be null)void removeReference(java.lang.Object context)
context - The context to remove the reference forSiehe auch Jowidgets Nutzerhandbuch