tyrex.resource.jca
Class Connector

java.lang.Object
  extended bytyrex.resource.ResourceConfig
      extended bytyrex.resource.jca.Connector

public class Connector
extends ResourceConfig

Version:
$Revision: 1.14 $
Author:
Assaf Arkin

Field Summary
 
Fields inherited from class tyrex.resource.ResourceConfig
_factory, _jar, _limits, _name, _paths, _twoPhase
 
Constructor Summary
Connector()
           
 
Method Summary
 java.lang.Object createFactory()
          Called to create a new factory object for the purpose of configuring it.
 Resource createResource(TransactionDomain txDomain)
          Called to create a new resource from this resource configuration.
 void setFactory(java.lang.Object factory)
          Called to set the factory object after it has been configured.
 
Methods inherited from class tyrex.resource.ResourceConfig
getFactory, getJAR, getLimits, getName, getPaths, getTwoPhase, getURL, setJAR, setLimits, setName, setPaths, setTwoPhase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connector

public Connector()
Method Detail

setFactory

public void setFactory(java.lang.Object factory)
Called to set the factory object after it has been configured.

Overrides:
setFactory in class ResourceConfig
Parameters:
factory - The factory object

createFactory

public java.lang.Object createFactory()
                               throws ResourceException
Description copied from class: ResourceConfig
Called to create a new factory object for the purpose of configuring it. This method will return a factory object that will be configured from the resource configuration file, before being added to this object with a subsequent call to setFactory.

Specified by:
createFactory in class ResourceConfig
Returns:
The factory object (never null)
Throws:
ResourceException - An error occured while attempting to create a new factory

createResource

public Resource createResource(TransactionDomain txDomain)
                        throws ResourceException
Description copied from class: ResourceConfig
Called to create a new resource from this resource configuration.

Specified by:
createResource in class ResourceConfig
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


Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.