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

Use connection provider for quartz as well. #122

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

tmccombs
Copy link
Contributor

@tmccombs tmccombs commented Mar 3, 2025

Make it so that quartz can use our custom Quartz Provider as well as the admin controllers.

This creates a new com.lucidchart.piezo.BeanConnectionProvider class that can be used with the connectionProvider.class configuration, so that quartz itself will use the same connection provider as the controllers.

@tmccombs tmccombs requested a review from sriraamas March 3, 2025 23:49
* WARNING: This is intedned for the properties to all be set, and then `initialize` called to set everything up, after
* which the properties should be left unchanged.
*/
class BeanConnectionProvider extends org.quartz.utils.ConnectionProvider {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If BeanConnectionProvider just initiates a new ConnectionProvider which already extends org.quartz.utils.ConnectionProvider, why does this class need to extend that class too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it is necessary for it to be used by quartz as the connection provider class.

Technicaly, ConnectionProvider doesn't need to extend that interface, but I figured it might as well.

This instantiates a new ConnectionProvider, but it doesn't expose it to the quartz caller (it can't).

Copy link
Contributor

@aegbert5 aegbert5 Mar 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technicaly, ConnectionProvider doesn't need to extend that interface, but I figured it might as well.

Can we remove that extension? I think it may confuse future me and other developers why we have a connection provider wrapping a connection provider :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, done

@tmccombs tmccombs requested a review from aegbert5 March 4, 2025 18:14
@tmccombs tmccombs requested a review from aegbert5 March 7, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants