Skip to content

Instantly share code, notes, and snippets.

@dennischen
Created September 27, 2018 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dennischen/e0adf44294784537013f7b6ab297f8af to your computer and use it in GitHub Desktop.
Save dennischen/e0adf44294784537013f7b6ab297f8af to your computer and use it in GitHub Desktop.
to use DynamicUnit and GearDynamicUnitProvider
@DynamicUnit(provider=TestUnitProvider.class)
Integer cpuLoading;
static public class TestUnitProvider implements GearDynamicUnitProvider{
@Override
public String getUnit(Object bean, AccessibleObject member) {
return "JJ";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment