Class AnnotationUtils


  • public class AnnotationUtils
    extends Object
    Bag for utility methods
    Author:
    Jerome Dochez
    • Constructor Detail

      • AnnotationUtils

        public AnnotationUtils()
    • Method Detail

      • getLogger

        public static Logger getLogger()
      • setLogger

        public static void setLogger​(Logger lg)
        Deprecated.
        Since 4.1.2.172 as unused in Payara
        Sets the logger
        Parameters:
        lg -
        See Also:
        getLogger()
      • setLoggerTarget

        public static void setLoggerTarget​(String what)
        Deprecated.
        Since 4.1.2.172 as unused in Payara
        Sets what type of things are to logged
        Parameters:
        what -
      • getLoggerTarget

        public static String getLoggerTarget()
        Deprecated.
        Since 4.1.2.172 as unused in Payara
        Returns:
      • shouldLog

        public static boolean shouldLog​(String what)
        Deprecated.
        Since 4.1.2.172, use of different Loggers is the preferred method
        Parameters:
        what -
        Returns:
        See Also:
        Logger.getLogger(String)
      • getAnnotationHandlerForDescriptor

        public static org.glassfish.hk2.api.ActiveDescriptor<AnnotationHandler> getAnnotationHandlerForDescriptor​(org.glassfish.hk2.api.ServiceLocator locator,
                                                                                                                  Class<?> forThis)
        Gets the annotation handler for the given class (without causing any of the annotation handlers to be classloaded)
        Parameters:
        locator - The locator to find the annotation handler for
        forThis - The class to find the annotation handler for
        Returns: