← Back to context

Comment by bdangubic

3 days ago

never had any issues debugging as I am never debugging the scheduler (that works :) ) but my own code.

and what exactly is “cronService”? you write in each service or copy/paste each time you need it?

`cronService` is an injected instance of some class, probably provided by framework. My point is to demonstrate alternative, imperative way of defining cron tasks, as compared to declarative one.

  • A better name would probably be CronScheduler or something else. “Service” is always overused and doesn’t actually describe or mean anything.

You can write your own libraries?

My goodness. What a question!

  • Whole point of spring is so you don't have to write your own libraries. Batteries included and all.

    • What if I told you - you can use a batteries-included framework, and still write your own libraries specifically only for things you want your own version of and want to share across projects?

      The problem isn't that I don't know how to use a batteries included framework. The problem is that you guys don't know there is even an option to reuse your code by writing libraries.

      4 replies →