Lazy Initialise a bean

Job ID: 35767237

Budget: £10 – £20 GBP

I have a java framework that uses spring to load config into a jms client but I want to lazy load it.

at the moment I have a @Component class that contains the bean and @ContextConfiguration class that @Autowires this. I do not want it to eager load, I want to have a method that says:

public Jms createJms() {
return jms.start;
}