I have a common logic which is needed in all jobs #2370
Unanswered
shirin-monzavi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in all of my job i need to call a method. the method call an api in order to get a private key and check whether the expiration time is expired. this method should be called in all of my jobs.
i think there should be a base class that common logic is put and when job inherited from that base class they call this method so there is no duplication code in my jobs. on top of that, i need to log in all of my jobs is it better that quartz provide some thing for cross-cutting concerns.
here is my code:
Beta Was this translation helpful? Give feedback.
All reactions