Class FactoryBuilder.ClassFactory<T>

java.lang.Object
javax.cache.configuration.FactoryBuilder.ClassFactory<T>
Type Parameters:
T - the type of the instance produced by the Factory
All Implemented Interfaces:
Serializable, Factory<T>
Enclosing class:
FactoryBuilder

public static class FactoryBuilder.ClassFactory<T> extends Object implements Factory<T>, Serializable
A Factory that instantiates a specific Class.
See Also:
  • Field Details

    • serialVersionUID

      public static final long serialVersionUID
      The serialVersionUID required for Serializable.
      See Also:
    • className

      private String className
      The name of the Class.
  • Constructor Details

  • Method Details

    • create

      public T create()
      Description copied from interface: Factory
      Constructs and returns a fully configured instance of T.
      Specified by:
      create in interface Factory<T>
      Returns:
      an instance of T.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object