@Singleton public class ContextAccess extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DataSourceProvider |
dataSourceProvider |
| Constructor and Description |
|---|
ContextAccess() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeContext() |
protected Context |
createContext() |
Context |
getContext() |
protected DataSource |
getDataSource() |
void |
startContext() |
void |
startContext(DataSource dataSource)
Start the context with a custom dataSource
|
@Inject protected DataSourceProvider dataSourceProvider
public Context getContext()
public void startContext()
public void startContext(DataSource dataSource)
dataSource - public void closeContext()
protected Context createContext()
protected DataSource getDataSource()
Copyright © 2019. All rights reserved.