Convert FileWatchListener to an interface

Original commit: elastic/x-pack-elasticsearch@da9f6eddc1
This commit is contained in:
Ryan Ernst 2016-07-27 15:32:52 -07:00
parent b26fb2f0de
commit fedd3b4f4a
6 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
* In case of failure to read a valid operation mode from <code>licenseModePath</code>,
* the operation mode will default to PLATINUM
*/
public final class OperationModeFileWatcher extends FileChangesListener {
public final class OperationModeFileWatcher implements FileChangesListener {
private final ResourceWatcherService resourceWatcherService;
private final Path licenseModePath;
private final AtomicBoolean initialized = new AtomicBoolean();

View File

@ -185,7 +185,7 @@ public class FileUserPasswdStore {
}
}
private class FileListener extends FileChangesListener {
private class FileListener implements FileChangesListener {
@Override
public void onFileCreated(Path file) {
onFileChanged(file);

View File

@ -217,7 +217,7 @@ public class FileUserRolesStore {
}
}
private class FileListener extends FileChangesListener {
private class FileListener implements FileChangesListener {
@Override
public void onFileCreated(Path file) {
onFileChanged(file);

View File

@ -184,7 +184,7 @@ public class DnRoleMapper {
}
}
private class FileListener extends FileChangesListener {
private class FileListener implements FileChangesListener {
@Override
public void onFileCreated(Path file) {
onFileChanged(file);

View File

@ -287,7 +287,7 @@ public class FileRolesStore extends AbstractLifecycleComponent implements RolesS
return segments;
}
private class FileListener extends FileChangesListener {
private class FileListener implements FileChangesListener {
@Override
public void onFileCreated(Path file) {

View File

@ -264,7 +264,7 @@ abstract class TrustConfig {
}
}
protected static class ChangeListener extends FileChangesListener {
protected static class ChangeListener implements FileChangesListener {
private final List<Path> paths;
private final Reloadable reloadable;