public class AnnotationUtils extends Object
Constructor and Description |
---|
AnnotationUtils() |
Modifier and Type | Method and 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 String |
getLocalString(String key,
String defaultString,
Object... arguments) |
static Logger |
getLogger() |
static String |
getLoggerTarget()
Deprecated.
Since 4.1.2.172 as unused in Payara
|
static void |
setLogger(Logger lg)
Deprecated.
Since 4.1.2.172 as unused in Payara
|
static void |
setLoggerTarget(String what)
Deprecated.
Since 4.1.2.172 as unused in Payara
|
static boolean |
shouldLog(String what)
Deprecated.
Since 4.1.2.172, use of different
Logger s is the preferred method |
public static Logger getLogger()
public static void setLogger(Logger lg)
lg
- getLogger()
public static void setLoggerTarget(String what)
what
- public static String getLoggerTarget()
public static boolean shouldLog(String what)
Logger
s is the preferred methodwhat
- Logger.getLogger(String)
public static String getLocalString(String key, String defaultString, Object... arguments)
public static org.glassfish.hk2.api.ActiveDescriptor<AnnotationHandler> getAnnotationHandlerForDescriptor(org.glassfish.hk2.api.ServiceLocator locator, Class<?> forThis)
locator
- The locator to find the annotation handler forforThis
- The class to find the annotation handler forCopyright © 2020. All rights reserved.