@Service public class JdbcRuntimeExtension extends Object implements ConnectorRuntimeExtension
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
logger |
protected ConnectorRuntime |
runtime |
| Constructor and Description |
|---|
JdbcRuntimeExtension() |
| Modifier and Type | Method and Description |
|---|---|
Collection<Resource> |
getAllSystemRAResourcesAndPools()
Return the collection of system resources and pools.
|
DeferredResourceConfig |
getDeferredResourceConfig(Object resource,
Object pool,
String resType,
String raName) |
PoolInfo |
getPoolNameFromResourceJndiName(ResourceInfo resourceInfo)
Gets the Pool name that this JDBC resource points to.
|
String |
getResourceType(ConfigBeanProxy cb) |
boolean |
isConnectionPoolReferredInServerInstance(PoolInfo poolInfo)
Determines if a JDBC connection pool is referred in a
server-instance via resource-refs
|
Object |
lookupDataSourceInDAS(ResourceInfo resourceInfo)
Get a wrapper datasource specified by the jdbcjndi name
This API is intended to be used in the DAS.
|
void |
registerDataSourceDefinitions(Application application) |
void |
unRegisterDataSourceDefinitions(Application application) |
protected static final Logger logger
protected ConnectorRuntime runtime
public Collection<Resource> getAllSystemRAResourcesAndPools()
ConnectorRuntimeExtensiongetAllSystemRAResourcesAndPools in interface ConnectorRuntimeExtensionpublic void registerDataSourceDefinitions(Application application)
registerDataSourceDefinitions in interface ConnectorRuntimeExtensionpublic void unRegisterDataSourceDefinitions(Application application)
unRegisterDataSourceDefinitions in interface ConnectorRuntimeExtensionpublic Object lookupDataSourceInDAS(ResourceInfo resourceInfo) throws ConnectorRuntimeException
lookupDataSourceInDAS in interface ConnectorRuntimeExtensionresourceInfo - the jndi name of the resourceConnectorRuntimeExceptionpublic PoolInfo getPoolNameFromResourceJndiName(ResourceInfo resourceInfo)
getPoolNameFromResourceJndiName in interface ConnectorRuntimeExtensionresourceInfo - the jndi name of the resource being used to get Connection from
This resource can either be a pmf resource or a jdbc resourcepublic boolean isConnectionPoolReferredInServerInstance(PoolInfo poolInfo)
isConnectionPoolReferredInServerInstance in interface ConnectorRuntimeExtensionpoolInfo - pool-namepublic String getResourceType(ConfigBeanProxy cb)
getResourceType in interface ConnectorRuntimeExtensionpublic DeferredResourceConfig getDeferredResourceConfig(Object resource, Object pool, String resType, String raName) throws ConnectorRuntimeException
getDeferredResourceConfig in interface ConnectorRuntimeExtensionConnectorRuntimeExceptionCopyright © 2019. All rights reserved.