Class DBConnectionProducer
- java.lang.Object
-
- hu.icellmobilsoft.roaster.oracle.producer.DBConnectionProducer
-
@ApplicationScoped public class DBConnectionProducer extends Object
Producer for creating or obtainingConnection- Author:
- balazs.joo
-
-
Constructor Summary
Constructors Constructor Description DBConnectionProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Destroys created ConnectionsJDBCConnectiongetConnection(javax.enterprise.inject.spi.InjectionPoint injectionPoint)Creates or gets Connection for the given configKey
-
-
-
Method Detail
-
getConnection
@Produces @Dependent public JDBCConnection getConnection(javax.enterprise.inject.spi.InjectionPoint injectionPoint) throws hu.icellmobilsoft.coffee.dto.exception.BaseException
Creates or gets Connection for the given configKey- Parameters:
injectionPoint- CDI injection point- Returns:
- created object
- Throws:
hu.icellmobilsoft.coffee.dto.exception.BaseException- exception
-
clear
@PreDestroy public void clear()
Destroys created Connections
-
-