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 ContextManager
Context
instance.public void clear()
ContextManager
clear
in interface ContextManager
Copyright © 2012–2019. All rights reserved.