Package org.glassfish.apf.impl
Class AnnotationUtils
- java.lang.Object
-
- org.glassfish.apf.impl.AnnotationUtils
-
public class AnnotationUtils extends Object
Bag for utility methods- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description AnnotationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)static StringgetLocalString(String key, String defaultString, Object... arguments)static LoggergetLogger()static StringgetLoggerTarget()static voidsetLogger(Logger lg)static voidsetLoggerTarget(String what)static booleanshouldLog(String what)
-
-
-
Method Detail
-
getLogger
public static Logger getLogger()
-
setLogger
public static void setLogger(Logger lg)
-
setLoggerTarget
public static void setLoggerTarget(String what)
-
getLoggerTarget
public static String getLoggerTarget()
-
shouldLog
public static boolean shouldLog(String what)
-
getLocalString
public static String getLocalString(String key, String defaultString, Object... arguments)
-
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 forforThis- The class to find the annotation handler for- Returns:
-
-