tyrex.resource
public abstract class ResourceConfig extends Object
Version: $Revision: 1.6 $
| Field Summary | |
|---|---|
| protected Object | _factory
The configured resource manager factory. |
| protected String | _jar
The JAR file name. |
| protected PoolLimits | _limits
The connection pool limits. |
| protected String | _name
The resource name. |
| protected String | _paths
Additional class paths for dependent files. |
| protected boolean | _twoPhase
True if two-phase commit is supported. |
| Method Summary | |
|---|---|
| abstract Object | createFactory()
Called to create a new factory object for the purpose of
configuring it. |
| abstract Resource | createResource(TransactionDomain txDomain)
Called to create a new resource from this resource configuration.
|
| Object | getFactory()
Called to return the factory object.
|
| String | getJAR()
Returns the JAR file name.
|
| PoolLimits | getLimits()
Returns the connection pool limits.
|
| String | getName()
Returns the name for this resource manager.
|
| String | getPaths()
Returns the additional path names.
|
| boolean | getTwoPhase()
Returns the two-phase commit support flag. |
| protected URL | getURL(String urlString)
Return the url for the url string.
|
| void | setFactory(Object factory)
Called to set the factory object after it has been configured.
|
| void | setJAR(String jar)
Sets the JAR file name. |
| void | setLimits(PoolLimits limits)
Sets the connection pool limist. |
| void | setName(String name)
Sets the name for this resource manager. |
| void | setPaths(String paths)
Sets additional path names. |
| void | setTwoPhase(boolean twoPhase)
Sets the two-phase commit support flag. |
setFactory.
Returns: The factory object (never null)
Throws: ResourceException An error occured while attempting to create a new factory
Parameters: txDomain The transaction domain in which the resource will be used
Returns: The resource
Throws: ResourceException An error occured while attempting to create the resource
Returns: The factory object
Returns: The JAR file name
Returns: The connection pool limits
Returns: The resource manager name
Returns: The additional path names
Returns: True if connections support two-phase commit
This code contains a workaround for a bug in java.net.URLClassLoader involving relative paths to directories.
Parameters: urlString the url string (required)
Returns: the url for the url string
Throws: IOException if the url is malformed or an io problem occurred.
Parameters: factory The factory object
Parameters: jar The JAR file name
Parameters: limits The connection pool limits
Parameters: name The resource manager name
Parameters: paths Additional path names
This flag is valid only if connections support the XA interface for distributed transaction demarcation. The default is always true.
Parameters: twoPhase True if connections support two-phase commit