Package org.iworkz.habitat.dao
Class Context
java.lang.Object
org.iworkz.habitat.dao.Context
- All Implemented Interfaces:
javax.inject.Provider<Connection>,ConnectionProvider
public class Context extends Object implements ConnectionProvider
-
Constructor Summary
Constructors Constructor Description Context(DataSource dataSource) -
Method Summary
Modifier and Type Method Description protected voidcheckState()voidclose()Connectionget()booleanisStarted()protected voidsetDataSource(DataSource dataSource)voidstart()
-
Constructor Details
-
Context
-
-
Method Details
-
setDataSource
-
get
- Specified by:
getin interfaceConnectionProvider- Specified by:
getin interfacejavax.inject.Provider<Connection>
-
checkState
protected void checkState() -
start
public void start() -
close
public void close() -
isStarted
public boolean isStarted()
-