com.bea.adapter.spi
Class AbstractBEAManagedConnectionFactory
java.lang.Object
com.bea.adapter.spi.AbstractManagedConnectionFactory
com.bea.adapter.spi.AbstractBEAManagedConnectionFactory
- All Implemented Interfaces:
- javax.resource.spi.ManagedConnectionFactory, Serializable
- public abstract class AbstractBEAManagedConnectionFactory
- extends AbstractManagedConnectionFactory
Extends AbstractManagedConnectionFactory to provide BEA specific license
verification. Only BEA adapter developers should use this extension.
- See Also:
- Serialized Form
Fields inherited from class com.bea.adapter.spi.AbstractManagedConnectionFactory |
m_achPassword, m_changes, m_strAdapterDescription, m_strAdapterName, m_strAdapterVendorName, m_strAdapterVersion, m_strAdditionalLogContext, m_strConnectionURL, m_strCountryCode, m_strLanguageCode, m_strLogConfigFile, m_strLogLevel, m_strMessageBundleBase, m_strPortNumber, m_strRootLogContext, m_strServerName, m_strUserName, m_vetos |
Methods inherited from class com.bea.adapter.spi.AbstractManagedConnectionFactory |
addPropertyChangeListener, addVetoableChangeListener, appendField, assertValidLicense, assertValidState, checkState, compareCharArrays, comparePropertyValues, createConnectionFactory, createConnectionFactory, createConnectionFactory, equals, getAdapterDescription, getAdapterName, getAdapterVendor, getAdapterVersion, getAdditionalLogContext, getConnectionURL, getCountryCode, getLanguageCode, getLogConfigFile, getLogContext, getLogger, getLogLevel, getLogWriter, getMessageBundleBase, getPassword, getPasswordCredential, getPasswordFromRequestInfo, getPortNumber, getRootLogContext, getServerName, getUserName, getUserNameFromRequestInfo, hashCode, hasSameBaseProperties, hasSameConnectionProperties, initAdapterMetaData, initializeLogResources, isValidState, logInfo, matchManagedConnections, removePropertyChangeListener, removeVetoableChangeListener, setAdapterDescription, setAdapterName, setAdapterVendor, setAdapterVersion, setAdditionalLogContext, setConnectionURL, setCountryCode, setLanguageCode, setLogConfigFile, setLogLevel, setLogWriter, setMessageBundleBase, setPassword, setPortNumber, setRootLogContext, setServerName, setUserName, toString |
Methods inherited from interface javax.resource.spi.ManagedConnectionFactory |
createManagedConnection |
AbstractBEAManagedConnectionFactory
public AbstractBEAManagedConnectionFactory()
throws javax.resource.ResourceException
- Constructs an instance if the license verification succeeds.
getLicensedProductName
protected abstract String getLicensedProductName()
- Returns:
- this product's name for license verification; BEA adapter
developers should make this method
final
getLicensedProductRelease
protected abstract String getLicensedProductRelease()
- Returns:
- this product's release for license verification; BEA adapter
developers should make this method
final
getLicensedProductComponent
protected abstract String getLicensedProductComponent()
- Returns:
- this product's component for license verification; BEA adapter
developers should make this method
final
checkLicense
protected final ValidationResult checkLicense()
- Returns true if the adapter can locate a valid BEA license in the runtime
environment; looks for license.bea on the classpath.
- Overrides:
checkLicense
in class AbstractManagedConnectionFactory
- Returns:
- ValidationResult - an object that describes the result of a
validation check; a
ValidationResult
object may or may not
have additional information associated with it. The additional information
is used to generate a "better" exception on a failed validation attempt.