Yeah, doing work inside a constructor isn't really a good way to go,
in general. It makes things very hard to test.
I can't remember, however - is there any lifecycle management in T5-
ioc? Can you mark something as an initialization method, so that
before it's presented to a calling class, it's initialized?
Christian.
On 2009-08-21, at 18:25 , Juan E. Maya wrote:
U could also start the service by marking as eager or if that's not
what u want u could use constructor injection and run the method
inside of the constructor.
On Sat, Aug 22, 2009 at 12:12 AM, Joshua
Martin<[email protected]> wrote:
Is there a way to automatically run a method in a Service Impl right
after the service has been bound?
As in, my service implementation is providing a service that I'd like
to be automatically available when the application starts. I don't
want the user to have to go click a button just to get the method to
run, and therefore the service to start.
--
_________________________________
Joshua S. Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Christian Edward Gruber
e-mail: [email protected]
weblog: http://www.geekinasuit.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]