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 Deprecated 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 String
getLocalString(String key, String defaultString, Object... arguments)
static Logger
getLogger()
static String
getLoggerTarget()
Deprecated.Since 4.1.2.172 as unused in Payarastatic void
setLogger(Logger lg)
Deprecated.Since 4.1.2.172 as unused in Payarastatic void
setLoggerTarget(String what)
Deprecated.Since 4.1.2.172 as unused in Payarastatic boolean
shouldLog(String what)
Deprecated.Since 4.1.2.172, use of differentLogger
s is the preferred method
-
-
-
Method Detail
-
getLogger
public static Logger getLogger()
-
setLogger
public static void setLogger(Logger lg)
Deprecated.Since 4.1.2.172 as unused in PayaraSets the logger- Parameters:
lg
-- See Also:
getLogger()
-
setLoggerTarget
public static void setLoggerTarget(String what)
Deprecated.Since 4.1.2.172 as unused in PayaraSets 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 differentLogger
s is the preferred method- Parameters:
what
-- Returns:
- See Also:
Logger.getLogger(String)
-
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:
-
-