-
Notifications
You must be signed in to change notification settings - Fork 28
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
base: master
Are you sure you want to change the base?
Conversation
* 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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, done
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 theconnectionProvider.class
configuration, so that quartz itself will use the same connection provider as the controllers.