@Service public class JdbcRuntimeExtension extends Object implements com.sun.enterprise.connectors.ConnectorRuntimeExtension
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
logger |
protected com.sun.enterprise.connectors.ConnectorRuntime |
runtime |
| Constructor and Description |
|---|
JdbcRuntimeExtension() |
| Modifier and Type | Method and Description |
|---|---|
Collection<com.sun.enterprise.config.serverbeans.Resource> |
getAllSystemRAResourcesAndPools() |
com.sun.enterprise.connectors.DeferredResourceConfig |
getDeferredResourceConfig(Object resource,
Object pool,
String resType,
String raName) |
org.glassfish.resourcebase.resources.api.PoolInfo |
getPoolNameFromResourceJndiName(org.glassfish.resourcebase.resources.api.ResourceInfo resourceInfo)
Gets the Pool name that this JDBC resource points to.
|
String |
getResourceType(org.jvnet.hk2.config.ConfigBeanProxy cb) |
boolean |
isConnectionPoolReferredInServerInstance(org.glassfish.resourcebase.resources.api.PoolInfo poolInfo)
Determines if a JDBC connection pool is referred in a
server-instance via resource-refs
|
Object |
lookupDataSourceInDAS(org.glassfish.resourcebase.resources.api.ResourceInfo resourceInfo)
Get a wrapper datasource specified by the jdbcjndi name
This API is intended to be used in the DAS.
|
void |
registerDataSourceDefinitions(com.sun.enterprise.deployment.Application application) |
void |
unRegisterDataSourceDefinitions(com.sun.enterprise.deployment.Application application) |
protected static final Logger logger
protected com.sun.enterprise.connectors.ConnectorRuntime runtime
public Collection<com.sun.enterprise.config.serverbeans.Resource> getAllSystemRAResourcesAndPools()
getAllSystemRAResourcesAndPools in interface com.sun.enterprise.connectors.ConnectorRuntimeExtensionpublic void registerDataSourceDefinitions(com.sun.enterprise.deployment.Application application)
registerDataSourceDefinitions in interface com.sun.enterprise.connectors.ConnectorRuntimeExtensionpublic void unRegisterDataSourceDefinitions(com.sun.enterprise.deployment.Application application)
unRegisterDataSourceDefinitions in interface com.sun.enterprise.connectors.ConnectorRuntimeExtensionpublic Object lookupDataSourceInDAS(org.glassfish.resourcebase.resources.api.ResourceInfo resourceInfo) throws com.sun.appserv.connectors.internal.api.ConnectorRuntimeException
lookupDataSourceInDAS in interface com.sun.enterprise.connectors.ConnectorRuntimeExtensionresourceInfo - the jndi name of the resourcecom.sun.appserv.connectors.internal.api.ConnectorRuntimeExceptionpublic org.glassfish.resourcebase.resources.api.PoolInfo getPoolNameFromResourceJndiName(org.glassfish.resourcebase.resources.api.ResourceInfo resourceInfo)
getPoolNameFromResourceJndiName in interface com.sun.enterprise.connectors.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(org.glassfish.resourcebase.resources.api.PoolInfo poolInfo)
isConnectionPoolReferredInServerInstance in interface com.sun.enterprise.connectors.ConnectorRuntimeExtensionpoolInfo - pool-namepublic String getResourceType(org.jvnet.hk2.config.ConfigBeanProxy cb)
getResourceType in interface com.sun.enterprise.connectors.ConnectorRuntimeExtensionpublic com.sun.enterprise.connectors.DeferredResourceConfig getDeferredResourceConfig(Object resource, Object pool, String resType, String raName) throws com.sun.appserv.connectors.internal.api.ConnectorRuntimeException
getDeferredResourceConfig in interface com.sun.enterprise.connectors.ConnectorRuntimeExtensioncom.sun.appserv.connectors.internal.api.ConnectorRuntimeExceptionCopyright © 2013. All Rights Reserved.