public class SingletonContextManager extends Object implements ContextManager
ContextManager that maintains a single Context instance
across the entire application.| Constructor and Description |
|---|
SingletonContextManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the underlying context data.
|
Context |
getContext()
Returns a singleton
Context instance. |
public Context getContext()
Context instance. Useful for single-user
applications.getContext in interface ContextManagerContext instance.public void clear()
ContextManagerclear in interface ContextManagerCopyright © 2012–2017. All rights reserved.