Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Currency] FileAlterationObserver has been deprecated #8561

Open
mandy-chessell opened this issue Jan 3, 2025 · 0 comments
Open

[Currency] FileAlterationObserver has been deprecated #8561

mandy-chessell opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement New feature or request triage New bug/issue which needs checking & assigning

Comments

@mandy-chessell
Copy link
Contributor

Existing/related issue?

No response

Please describe the new behavior that that will improve Egeria

A new build warning has appreared since the last set of dependabot updates indicating that the FileAlterationObserver class has been deprecated in Apache Common.

.../egeria/open-metadata-implementation/frameworks/open-integration-framework/src/main/java/org/odpi/openmetadata/frameworks/integration/filelistener/FilesListenerManager.java:89: warning: [deprecation] FileAlterationObserver(String) in FileAlterationObserver has been deprecated
        FileAlterationObserver observer = new FileAlterationObserver(fileToMonitor.getAbsolutePath());

The FileAlterationObserver is used in the FilesListenerManager of the Open Integration Framework (OIF) to make it easy for integraiton connectors to monitor the file system.

The recommended replacement is java.nio.file.WatchService. This has a huge advantage in that is does not require an external dependency.

Ideally we want to swap in the new class without changing the FileListenerManager interface.

Alternatives

No response

Any Further Information?

No response

Would you be prepared to be assigned this issue to work on?

No response

@mandy-chessell mandy-chessell added enhancement New feature or request triage New bug/issue which needs checking & assigning labels Jan 3, 2025
@mandy-chessell mandy-chessell changed the title [Technical Debt] FileAlterationObserver has been deprecated [Currency] FileAlterationObserver has been deprecated Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage New bug/issue which needs checking & assigning
Projects
Development

No branches or pull requests

1 participant