Package org.exoplatform.webui
Class Util
java.lang.Object
org.exoplatform.webui.Util
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcreateObject(Class<T> type, InitParams params) static ObjectcreateObject(String type, InitParams params) static jakarta.servlet.http.HttpServletRequest
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
createObject
- Parameters:
type- The type of the object to create, given as a Stringparams- The parameters to give to the constructor- Returns:
- A new object of the given type
- Throws:
Exception
-
createObject
- Type Parameters:
T- The type of the object to create- Parameters:
type- The type parameter given as a Class objectparams- The parameters to give to the constructor- Returns:
- The object of type T
- Throws:
Exception
-
getRequest
- Throws:
Exception
-