Interface IgnoredTypesBuilder
-
public interface IgnoredTypesBuilderThis interface defines different ways to ignore/allow instrumenting classes or packages.This interface should not be implemented by the javaagent extension developer - the javaagent will provide the implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IgnoredTypesBuilderallowClass(String classNameOrPrefix)Allow the class or package specified byclassNameOrPrefixto be instrumented.IgnoredTypesBuilderallowClassLoader(String classNameOrPrefix)Allow the class loader specified byclassNameOrPrefixto be instrumented.IgnoredTypesBuilderignoreClass(String classNameOrPrefix)Ignore the class or package specified byclassNameOrPrefixand exclude it from being instrumented.IgnoredTypesBuilderignoreClassLoader(String classNameOrPrefix)Ignore the class loader specified byclassNameOrPrefixand exclude it from being instrumented.IgnoredTypesBuilderignoreTaskClass(String classNameOrPrefix)Ignore the Java concurrent task class specified byclassNameOrPrefixand exclude it from being instrumented.
-
-
-
Method Detail
-
ignoreClass
IgnoredTypesBuilder ignoreClass(String classNameOrPrefix)
Ignore the class or package specified byclassNameOrPrefixand exclude it from being instrumented. Calling this will overwrite any previous settings for passed prefix.classNameOrPrefixcan be the full class name (ex.com.example.MyClass), package name (ex.com.example.mypackage.), or outer class name (excom.example.OuterClass$)- Returns:
this
-
allowClass
IgnoredTypesBuilder allowClass(String classNameOrPrefix)
Allow the class or package specified byclassNameOrPrefixto be instrumented. Calling this will overwrite any previous settings for passed prefix; in particular, calling this method will override any previousignoreClass(String)setting.classNameOrPrefixcan be the full class name (ex.com.example.MyClass), package name (ex.com.example.mypackage.), or outer class name (excom.example.OuterClass$)- Returns:
this
-
ignoreClassLoader
IgnoredTypesBuilder ignoreClassLoader(String classNameOrPrefix)
Ignore the class loader specified byclassNameOrPrefixand exclude it from being instrumented. Calling this will overwrite any previous settings for passed prefix.classNameOrPrefixcan be the full class name (ex.com.example.MyClass), package name (ex.com.example.mypackage.), or outer class name (excom.example.OuterClass$)- Returns:
this
-
allowClassLoader
IgnoredTypesBuilder allowClassLoader(String classNameOrPrefix)
Allow the class loader specified byclassNameOrPrefixto be instrumented. Calling this will overwrite any previous settings for passed prefix; in particular, calling this method will override any previousignoreClassLoader(String)setting.classNameOrPrefixcan be the full class name (ex.com.example.MyClass), package name (ex.com.example.mypackage.), or outer class name (excom.example.OuterClass$)- Returns:
this
-
ignoreTaskClass
IgnoredTypesBuilder ignoreTaskClass(String classNameOrPrefix)
Ignore the Java concurrent task class specified byclassNameOrPrefixand exclude it from being instrumented. Concurrent task classes implement or extend one of the following classes:Calling this will overwrite any previous settings for passed prefix.
classNameOrPrefixcan be the full class name (ex.com.example.MyClass), package name (ex.com.example.mypackage.), or outer class name (excom.example.OuterClass$)- Returns:
this
-
-