Java Code Examples for net.bytebuddy.asm.Advice#OnNonDefaultValue
The following examples show how to use
net.bytebuddy.asm.Advice#OnNonDefaultValue .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SSLContextInstrumentation.java From apm-agent-java with Apache License 2.0 | 4 votes |
/** * This will not allow using the default SSL factory from any agent thread */ @Advice.OnMethodEnter(suppress = Throwable.class, skipOn = Advice.OnNonDefaultValue.class) public static boolean skipExecutionIfAgentThread() { return Thread.currentThread().getName().startsWith(ThreadUtils.ELASTIC_APM_THREAD_PREFIX); }
Example 2
Source File: CachedReturnPlugin$long.java From byte-buddy with Apache License 2.0 | 2 votes |
/** * The enter advice. * * @param cached The cached field's value. * @return {@code true} if a cached value exists. */ @Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class) protected static long enter(@CachedReturnPlugin.CacheField long cached) { return cached; }
Example 3
Source File: CachedReturnPlugin$Object.java From byte-buddy with Apache License 2.0 | 2 votes |
/** * The enter advice. * * @param cached The cached field's value. * @return {@code true} if a cached value exists. */ @Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class) protected static Object enter(@CachedReturnPlugin.CacheField Object cached) { return cached; }
Example 4
Source File: CachedReturnPlugin$double.java From byte-buddy with Apache License 2.0 | 2 votes |
/** * The enter advice. * * @param cached The cached field's value. * @return {@code true} if a cached value exists. */ @Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class) protected static double enter(@CachedReturnPlugin.CacheField double cached) { return cached; }
Example 5
Source File: CachedReturnPlugin$int.java From byte-buddy with Apache License 2.0 | 2 votes |
/** * The enter advice. * * @param cached The cached field's value. * @return {@code true} if a cached value exists. */ @Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class) protected static int enter(@CachedReturnPlugin.CacheField int cached) { return cached; }
Example 6
Source File: CachedReturnPlugin$short.java From byte-buddy with Apache License 2.0 | 2 votes |
/** * The enter advice. * * @param cached The cached field's value. * @return {@code true} if a cached value exists. */ @Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class) protected static short enter(@CachedReturnPlugin.CacheField short cached) { return cached; }
Example 7
Source File: CachedReturnPlugin$byte.java From byte-buddy with Apache License 2.0 | 2 votes |
/** * The enter advice. * * @param cached The cached field's value. * @return {@code true} if a cached value exists. */ @Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class) protected static byte enter(@CachedReturnPlugin.CacheField byte cached) { return cached; }
Example 8
Source File: CachedReturnPlugin$float.java From byte-buddy with Apache License 2.0 | 2 votes |
/** * The enter advice. * * @param cached The cached field's value. * @return {@code true} if a cached value exists. */ @Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class) protected static float enter(@CachedReturnPlugin.CacheField float cached) { return cached; }
Example 9
Source File: CachedReturnPlugin$boolean.java From byte-buddy with Apache License 2.0 | 2 votes |
/** * The enter advice. * * @param cached The cached field's value. * @return {@code true} if a cached value exists. */ @Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class) protected static boolean enter(@CachedReturnPlugin.CacheField boolean cached) { return cached; }
Example 10
Source File: CachedReturnPlugin$char.java From byte-buddy with Apache License 2.0 | 2 votes |
/** * The enter advice. * * @param cached The cached field's value. * @return {@code true} if a cached value exists. */ @Advice.OnMethodEnter(skipOn = Advice.OnNonDefaultValue.class) protected static char enter(@CachedReturnPlugin.CacheField char cached) { return cached; }