Class Util


  • public class Util
    extends Object
    Defines util methods for instantiating with weld
    • Constructor Detail

      • Util

        public Util()
    • 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