@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()
ConnectorRuntimeExtension
getAllSystemRAResourcesAndPools
in interface ConnectorRuntimeExtension
public void registerDataSourceDefinitions(Application application)
registerDataSourceDefinitions
in interface ConnectorRuntimeExtension
public void unRegisterDataSourceDefinitions(Application application)
unRegisterDataSourceDefinitions
in interface ConnectorRuntimeExtension
public Object lookupDataSourceInDAS(ResourceInfo resourceInfo) throws ConnectorRuntimeException
lookupDataSourceInDAS
in interface ConnectorRuntimeExtension
resourceInfo
- the jndi name of the resourceConnectorRuntimeException
public PoolInfo getPoolNameFromResourceJndiName(ResourceInfo resourceInfo)
getPoolNameFromResourceJndiName
in interface ConnectorRuntimeExtension
resourceInfo
- 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 ConnectorRuntimeExtension
poolInfo
- pool-namepublic String getResourceType(ConfigBeanProxy cb)
getResourceType
in interface ConnectorRuntimeExtension
public DeferredResourceConfig getDeferredResourceConfig(Object resource, Object pool, String resType, String raName) throws ConnectorRuntimeException
getDeferredResourceConfig
in interface ConnectorRuntimeExtension
ConnectorRuntimeException
Copyright © 2019. All rights reserved.