If you’re using the skeleton creator, be sure that “Create Hook Class” is checked for the client scope. Then in ClientHook.java, you’ll should see @Override
public void startup(ClientContext context, LicenseState activationState)
throws Exception {
// TODO write code here!
}
and you can implement @Override
public void notifyActivationStateChanged(LicenseState licenseState) {
// some code here
}
That should give you what you need.