public class JavaCodeInvokerCBPFactory extends Object
| Constructor and Description |
|---|
JavaCodeInvokerCBPFactory() |
JavaCodeInvokerCBPFactory(Class<?> accessorProviderClass) |
| Modifier and Type | Method and Description |
|---|---|
static Accessor |
getAccessor()
IMPORTANT STATIC METHOD
accessed from transformed classes
|
org.zeroturnaround.javarebel.ClassBytecodeProcessor |
insertAfter(AfterMethodCallHandler handler,
BehaviorSelector selector) |
org.zeroturnaround.javarebel.ClassBytecodeProcessor |
insertAfter(AfterMethodCallHandler handler,
String[] methodNames) |
org.zeroturnaround.javarebel.ClassBytecodeProcessor |
insertBefore(BeforeMethodCallHandler handler,
BehaviorSelector selector) |
org.zeroturnaround.javarebel.ClassBytecodeProcessor |
insertBefore(BeforeMethodCallHandler handler,
String[] methodNames) |
boolean |
isUseReflectionOnInstanceNaming()
check whether we use reflection when turning instances to String.
|
org.zeroturnaround.javarebel.ClassBytecodeProcessor |
logMethodEntry(LogPolicy logPolicy,
BehaviorSelector behaviorSelector)
Patches the class so it logs method invocations (inserts before method)
|
org.zeroturnaround.javarebel.ClassBytecodeProcessor |
logMethodEntry(LogPolicy logPolicy,
String[] methodNames)
Patches the class so it logs method invocations (inserts before method)
|
org.zeroturnaround.javarebel.ClassBytecodeProcessor |
logMethodExit(LogPolicy logPolicy,
BehaviorSelector behaviorSelector)
Patches the class so it logs method invocations (inserts after method)
|
org.zeroturnaround.javarebel.ClassBytecodeProcessor |
logMethodExit(LogPolicy logPolicy,
String[] methodNames)
Patches the class so it logs method invocations (inserts after method)
|
org.zeroturnaround.javarebel.ClassBytecodeProcessor |
logMethodInvocation(LogPolicy logPolicy,
BehaviorSelector behaviorSelector)
Patches the class so it logs method/constructor invocations (inserts before and after method)
|
org.zeroturnaround.javarebel.ClassBytecodeProcessor |
logMethodInvocation(LogPolicy logPolicy,
String[] methodNames)
Patches the class so it logs method invocations (inserts before and after method)
|
void |
setUseLocalCache(boolean useLocalCache)
Set if handlers will be stored and cached in the instrumented class
|
void |
setUseReflectionOnInstanceNaming(boolean useReflectionOnInstanceNaming)
(true by default)
set whether we use reflection when turning instances to String.
|
public JavaCodeInvokerCBPFactory()
public JavaCodeInvokerCBPFactory(Class<?> accessorProviderClass)
accessorProviderClass - allows to provide class which
must implement 'public static Accessor getAccessor();' methodpublic void setUseLocalCache(boolean useLocalCache)
useLocalCache - set enabledpublic static Accessor getAccessor()
public boolean isUseReflectionOnInstanceNaming()
public void setUseReflectionOnInstanceNaming(boolean useReflectionOnInstanceNaming)
useReflectionOnInstanceNaming - set the reflection on or offpublic org.zeroturnaround.javarebel.ClassBytecodeProcessor logMethodExit(LogPolicy logPolicy, String[] methodNames)
methodNames - selects methods to patch based on method namespublic org.zeroturnaround.javarebel.ClassBytecodeProcessor logMethodEntry(LogPolicy logPolicy, String[] methodNames)
methodNames - selects methods to patch based on method namespublic org.zeroturnaround.javarebel.ClassBytecodeProcessor logMethodInvocation(LogPolicy logPolicy, String[] methodNames)
methodNames - selects methods to patch based on method namespublic org.zeroturnaround.javarebel.ClassBytecodeProcessor logMethodInvocation(LogPolicy logPolicy, BehaviorSelector behaviorSelector)
behaviorSelector - selects methods/constructors to patchpublic org.zeroturnaround.javarebel.ClassBytecodeProcessor logMethodEntry(LogPolicy logPolicy, BehaviorSelector behaviorSelector)
behaviorSelector - selects methods to patchpublic org.zeroturnaround.javarebel.ClassBytecodeProcessor logMethodExit(LogPolicy logPolicy, BehaviorSelector behaviorSelector)
behaviorSelector - selects methods to patchpublic org.zeroturnaround.javarebel.ClassBytecodeProcessor insertAfter(AfterMethodCallHandler handler, BehaviorSelector selector)
selector - affected methodshandler - what is injected after method callpublic org.zeroturnaround.javarebel.ClassBytecodeProcessor insertAfter(AfterMethodCallHandler handler, String[] methodNames)
methodNames - affected methodshandler - what is injected after method callpublic org.zeroturnaround.javarebel.ClassBytecodeProcessor insertBefore(BeforeMethodCallHandler handler, BehaviorSelector selector)
selector - affected methodshandler - what is injected before method callpublic org.zeroturnaround.javarebel.ClassBytecodeProcessor insertBefore(BeforeMethodCallHandler handler, String[] methodNames)
methodNames - affected methodshandler - what is injected before method callCopyright © 2016. All rights reserved.