| |
|
| java.lang.Object org.codehaus.aspectwerkz.util.Util
Util | final public class Util (Code) | | Utility methods and constants used in the AspectWerkz system.
author: Jonas BonŽr |
BOOLEAN_DEFAULT_VALUE | final public static Boolean BOOLEAN_DEFAULT_VALUE(Code) | | |
BYTE_DEFAULT_VALUE | final public static Byte BYTE_DEFAULT_VALUE(Code) | | |
CHARACTER_DEFAULT_VALUE | final public static Character CHARACTER_DEFAULT_VALUE(Code) | | |
DOUBLE_DEFAULT_VALUE | final public static Double DOUBLE_DEFAULT_VALUE(Code) | | |
FLOAT_DEFAULT_VALUE | final public static Float FLOAT_DEFAULT_VALUE(Code) | | |
INTEGER_DEFAULT_VALUE | final public static Integer INTEGER_DEFAULT_VALUE(Code) | | |
LONG_DEFAULT_VALUE | final public static Long LONG_DEFAULT_VALUE(Code) | | |
SHORT_DEFAULT_VALUE | final public static Short SHORT_DEFAULT_VALUE(Code) | | |
booleanValueOf | public static Boolean booleanValueOf(boolean b)(Code) | | Helper method to support Java 1.4 like Boolean.valueOf(boolean) in Java 1.3
Parameters: b - |
calculateHash | public static Integer calculateHash(String className, ReflectionInfo info)(Code) | | Calculates the hash for the class name and the meta-data.
Parameters: className - the class name Parameters: info - the meta-data the hash |
classLoaderToString | public static String classLoaderToString(ClassLoader loader)(Code) | | Returns a String representation of a classloader Avoid to do a toString() if the resulting string is too long
(occurs on Tomcat)
Parameters: loader - String representation (toString or FQN@hashcode) |
fakeStackTrace | public static void fakeStackTrace(Throwable exception, String className)(Code) | | Removes the AspectWerkz specific elements from the stack trace. TODO: how to mess w/ the stacktrace in JDK
1.3.x?
Parameters: exception - the Throwable to modify the stack trace on Parameters: className - the name of the fake origin class of the exception |
|
|
|