Class Util

java.lang.Object
org.exoplatform.webui.Util

public class Util extends Object
Created by The eXo Platform SAS May 10, 2006 A utility class that provides static methods to create new objects, of a given type
  • Constructor Details

    • Util

      public Util()
  • Method Details

    • createObject

      public static Object createObject(String type, InitParams params) throws Exception
      Parameters:
      type - The type of the object to create, given as a String
      params - The parameters to give to the constructor
      Returns:
      A new object of the given type
      Throws:
      Exception
    • createObject

      public static <T> T createObject(Class<T> type, InitParams params) throws Exception
      Type Parameters:
      T - The type of the object to create
      Parameters:
      type - The type parameter given as a Class object
      params - The parameters to give to the constructor
      Returns:
      The object of type T
      Throws:
      Exception
    • getRequest

      public static jakarta.servlet.http.HttpServletRequest getRequest() throws Exception
      Throws:
      Exception