Class InstantiationHelpers

java.lang.Object
com.broadleafcommerce.metadata.dsl.core.helpers.InstantiationHelpers

public final class InstantiationHelpers extends Object
Author:
Nick Crum (ncrum)
  • Method Details

    • createInstance

      public static <T> T createInstance(Class<T> clazz)
      Creates a new instance of the provide class.
      Type Parameters:
      T - the type of the clazz
      Parameters:
      clazz - the class to construct
      Returns:
      an instance of the class