Class ReferenceCollector
- java.lang.Object
-
- io.opentelemetry.javaagent.tooling.muzzle.collector.ReferenceCollector
-
public class ReferenceCollector extends Object
LinkedHashMapis used for reference map to guarantee a deterministic order of iteration, so that bytecode generated based on it would also be deterministic.
-
-
Constructor Summary
Constructors Constructor Description ReferenceCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectReferencesFrom(String adviceClassName)Traverse a graph of classes starting fromadviceClassNameand collect all references to both internal (instrumentation) and external classes.Map<String,Reference>getReferences()List<String>getSortedHelperClasses()
-
-
-
Method Detail
-
collectReferencesFrom
public void collectReferencesFrom(String adviceClassName)
Traverse a graph of classes starting fromadviceClassNameand collect all references to both internal (instrumentation) and external classes.The graph of classes is traversed until a non-instrumentation (external) class is encountered.
This class is only called at compile time by the
MuzzleCodeGenerationPluginByteBuddy plugin.- Parameters:
adviceClassName- Starting point for generating references.- See Also:
InstrumentationClassPredicate
-
-