TransactionFactory (Apache Tomcat 10.1.54 API Documentation)
Description: declaration: package: org.apache.naming.factory, class: TransactionFactory

# Class TransactionFactory

java.lang.Object
org.apache.naming.factory.FactoryBase
org.apache.naming.factory.TransactionFactory

All Implemented Interfaces:
  `ObjectFactory`

public class TransactionFactory extends FactoryBase
Object factory for User transactions.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TransactionFactory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected ObjectFactory`
  `getDefaultFactory(Reference ref)`
  If a default factory is available for the given reference type, create the default factory.
  `protected Object`
  `getLinked(Reference ref)`
  If this reference is a link to another JNDI object, obtain that object.
  `protected boolean`
  `isReferenceTypeSupported(Object obj)`
  Determines if this factory supports processing the provided reference object.

  ### Methods inherited from class FactoryBase

  `getObjectInstance`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### TransactionFactory

    public TransactionFactory()

- ## Method Details

  - ### isReferenceTypeSupported

    protected boolean isReferenceTypeSupported(Object obj)
    Description copied from class: `FactoryBase`
    Determines if this factory supports processing the provided reference object.
    Specified by:
      `isReferenceTypeSupported` in class `FactoryBase`
    Parameters:
      `obj` - The object to be processed
    Returns:
      `true` if this factory can process the object, otherwise `false`

  - ### getDefaultFactory

    protected ObjectFactory getDefaultFactory(Reference ref)
    Description copied from class: `FactoryBase`
    If a default factory is available for the given reference type, create the default factory.
    Specified by:
      `getDefaultFactory` in class `FactoryBase`
    Parameters:
      `ref` - The reference object to be processed
    Returns:
      The default factory for the given reference object or `null` if no default factory exists.

  - ### getLinked

    protected Object getLinked(Reference ref)
    Description copied from class: `FactoryBase`
    If this reference is a link to another JNDI object, obtain that object.
    Specified by:
      `getLinked` in class `FactoryBase`
    Parameters:
      `ref` - The reference object to be processed
    Returns:
      The linked object or `null` if linked objects are not supported by or not configured for this reference object