I have a question about the one of the annotations in the Comet demo at: 

http://www.caucho.com/resin-3.1/examples/servlet-comet/comet

I am not too familiar with Java's annotations, so I am wondering how I can
get access to the _timerService, which is declared like:

  @In private TimerService _timerService;

I would like to create a JSTL custom tag, for example, that can access the
_timerService.  What does @In do?

Do I just have to create a getter method that returns TimerService?  That
wouldn't seem to work unless TimerService is a singleton -- but it's not
declared statically.  I am thinking I can solve this easily with
annotations, but I just don't understand them quite yet.

Thanks,

Aaron



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to