Package net.sf.saxon.trans

## Class Instantiator<T>

- java.lang.Object
- - net.sf.saxon.trans.Instantiator<T>

- All Implemented Interfaces:
    `Maker<T>`

      public class Instantiator<T>
      extends java.lang.Object
      implements Maker<T>

  Interface representing a factory class for instantiating instances of a specific class

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Instantiator​(java.lang.String className, Configuration config)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `T` | `make()` | Obtain an instance of type T, either by making a new instance or by reusing an existing instance

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### Instantiator

          public Instantiator​(java.lang.String className,
                              Configuration config)

  - ### Method Detail

    - #### make

          public T make()
                 throws XPathException

      Obtain an instance of type T, either by making a new instance or by reusing an existing instance
      Specified by:
        `make` in interface `Maker<T>`
      Throws:
        `XPathException` - if the attempt fails