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

      All Methods Instance Methods Abstract 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
    • Method Detail

      • 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