Package org.glassfish.weld.util
Class Util
- java.lang.Object
-
- org.glassfish.weld.util.Util
-
public class Util extends Object
Defines util methods for instantiating with weld
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Class<T>
classForName(String name)
Returns the actual class with the specified namestatic void
initializeWeldSingletonProvider()
Starts the singleton provider for weld.static <T> T
newInstance(String className)
Creates and returns a new instance of the specified class using a no-argument constructor
-
-
-
Method Detail
-
newInstance
public static <T> T newInstance(String className)
Creates and returns a new instance of the specified class using a no-argument constructor- Type Parameters:
T
-- Parameters:
className
-- Returns:
- Throws:
InstantiationException
IllegalAccessException
-
classForName
public static <T> Class<T> classForName(String name)
Returns the actual class with the specified name- Type Parameters:
T
-- Parameters:
name
- The full name of the class i.e. java.lang.String- Returns:
-
initializeWeldSingletonProvider
public static void initializeWeldSingletonProvider()
Starts the singleton provider for weld.This will be
ACLSingletonProvider
-
-