Interface Hook
-
- All Known Implementing Classes:
ArrayLoadHook,ArrayStoreHook,ExceptionHook,FieldReadHook,FieldWriteHook,MethodCallHook,MethodEntryHook,MethodExitHook
public interface HookBase interface for all hook configurations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List<InstrumentationFilter>getFilters()HookDescriptorgetHookDescriptor()default intgetPriority()Gets the priority for ordering multiple hooks at the same point.InstrumentationTargetgetTarget()booleanisEnabled()
-
-
-
Method Detail
-
getTarget
InstrumentationTarget getTarget()
- Returns:
- the target type of this hook
-
getHookDescriptor
HookDescriptor getHookDescriptor()
- Returns:
- the hook method descriptor
-
getFilters
List<InstrumentationFilter> getFilters()
- Returns:
- the filters determining where this hook applies
-
isEnabled
boolean isEnabled()
- Returns:
- true if this hook is enabled
-
getPriority
default int getPriority()
Gets the priority for ordering multiple hooks at the same point.- Returns:
- the ordering priority
-
-