Interface Maker<T>

All Known Implementing Classes:
Instantiator

public interface Maker<T>
Interface representing a factory class for instances of a specific type.

Similar to Supplier<T>, except that the make() method can throw a checked exception.

  • Method Summary

    Modifier and Type
    Method
    Description
    Obtain an instance of type T, either by making a new instance or by reusing an existing instance
  • Method Details

    • make

      T make() throws XPathException
      Obtain an instance of type T, either by making a new instance or by reusing an existing instance
      Throws:
      XPathException - if the attempt fails