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

Create an object and then give it to Sundial to run. #22

Open
markthegrea opened this issue Mar 2, 2016 · 3 comments
Open

Create an object and then give it to Sundial to run. #22

markthegrea opened this issue Mar 2, 2016 · 3 comments

Comments

@markthegrea
Copy link

We would like to be able to create an object and then give it to Sundial to run. Currently we can only give it the class name and such but we are using Guice and need to use the Guice object. It would be great to have

MyObject mo = new MyObject("yes");//I can set the object up here...
SundialJobScheduler.addJob(name, mo, m, false);

And of course MyObject would extend Job...

@lind
Copy link

lind commented Apr 14, 2016

What about using a custom JobFactory that could inject objects into the job or returning a job instance as described in quartz tutorial? (See: Job “Instances”) This is not possible in Sundial right now but with #24

@timmolter timmolter changed the title Request... Create an object and then give it to Sundial to run. Mar 10, 2019
@timmolter
Copy link
Member

Note to self. Create a second JobFactory like SimpleJobFactory.

@timmolter
Copy link
Member

@lind You you have a sample JobFactory that takes new'd up objects that you could share?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants