Skip to content

gctoolkit integration with jar #351

Answered by dsgrieve
AlinaHovakimyan asked this question in Q&A
Discussion options

You must be logged in to vote

Apr 30, 2024 1:01:01 PM com.microsoft.gctoolkit.jvm.AbstractJavaVirtualMachine analyze INFO: Is there a module containing Aggregation classes on the module-path

@AlinaHovakimyan There are three ways that you can get gctoolkit to find your Aggregation classes.

  1. Call the GCToolKit#loadAggregation(Aggregation) method
  2. Use Java modules for your application and add the provides descriptor in a module-info.java file for the Aggregations your application provides.
  3. Add service provider configuration files for your Aggregations to the META-INF\services directory of your jar file.

For the service provider approaches, you'll need to call GCToolKit#loadAggregationsFromServiceLoader()

There is also a

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by karianna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants