Announcement Announcement Module
No announcement yet.
Class Level IOC Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Class Level IOC

    Hello all im using spring 2.5
    I have a data access source (id = carDAO) as a bean and want to use the quartz timer constructor which takes the class as a param.

    QuartzShced s = new QuartzShced(Car.class);

    In class car i use a reference to carDao in the xml config file But when i go to use carDaO in the car class i get a null pointer at it. Is there a way to instantiate the carDao class for the Car class so that it be instantied when i pass the ref Car.class into the scheduler
    Thanks in advance.

    Ken Barnes

  • #2
    You can try to use spring + aspectj weaving for that.