make AbstractLicenseeComponents compatible with the found license plugin

Original commit: elastic/x-pack-elasticsearch@6b664d3956
This commit is contained in:
jaymode 2015-10-13 14:42:37 -04:00
parent 4a780637e9
commit b698cde334
2 changed files with 4 additions and 5 deletions

View File

@ -17,8 +17,8 @@ import org.elasticsearch.marvel.MarvelPlugin;
public class MarvelLicensee extends AbstractLicenseeComponent<MarvelLicensee> implements Licensee {
@Inject
public MarvelLicensee(Settings settings, LicenseeRegistry clientService, LicensesManagerService managerService) {
super(settings, MarvelPlugin.NAME, clientService, managerService);
public MarvelLicensee(Settings settings, LicenseeRegistry clientService) {
super(settings, MarvelPlugin.NAME, clientService);
}
@Override

View File

@ -23,9 +23,8 @@ public class ShieldLicensee extends AbstractLicenseeComponent<ShieldLicensee> im
private final ShieldLicenseState shieldLicenseState;
@Inject
public ShieldLicensee(Settings settings, LicenseeRegistry clientService,
LicensesManagerService managerService, ShieldLicenseState shieldLicenseState) {
super(settings, ShieldPlugin.NAME, clientService, managerService);
public ShieldLicensee(Settings settings, LicenseeRegistry clientService, ShieldLicenseState shieldLicenseState) {
super(settings, ShieldPlugin.NAME, clientService);
add(new Listener() {
@Override
public void onChange(License license, Status status) {