|
|
|
@ -15,14 +15,9 @@ import net.bytebuddy.matcher.ElementMatchers;
|
|
|
|
|
*/
|
|
|
|
|
public class Introspectior {
|
|
|
|
|
|
|
|
|
|
private static final ConcurrentMap<Class, TypeDescription.ForLoadedType> tCache = PlatformDependent.newConcurrentHashMap();
|
|
|
|
|
|
|
|
|
|
public static TypeDescription.ForLoadedType getTypeDescription(Class c) {
|
|
|
|
|
if (!tCache.containsKey(c)) {
|
|
|
|
|
return new TypeDescription.ForLoadedType(c);
|
|
|
|
|
}
|
|
|
|
|
return tCache.get(c);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static MethodDescription getMethodDescription(Class c, String method) {
|
|
|
|
|
if (method == null || method.isEmpty()) {
|
|
|
|
|