Is it possible to define a macro in my Spring application context XML file that i can use repeatedly to produce similar bean blocks just with different id prefixes and property values?
I’m using the Quartz scheduler which requires to define helper beans for each job. I’m also using bean delegation described here which requires even more bean definitions for a scheduled job, so it would be nice if could define a job with something like this:
<jobs:scheduleJob prefix="someJob" class="this.is.my.Class" cronSetting="0 0 * * * ?" />
You can use custom schema with Spring. This thread discusses it and provides references Building custom Spring config tags for a framework.