Created
September 27, 2018 04:01
-
-
Save dennischen/e0adf44294784537013f7b6ab297f8af to your computer and use it in GitHub Desktop.
to use DynamicUnit and GearDynamicUnitProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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