Pete, folks,

Introducting SuperServicable (for want of a better name). Driven by the belief that service(..) could be a little more in accordance with the IoC pattern. Also inspired by recent xdoclet changes:

public void service(ServiceManager serviceManager) throws ServiceException {
aThing = (AThing) serviceManager.lookup("thing-blah-role");
}


If we had ....

 /**
   * @phoenix:dependency name="somepackage.SomeService" type="direct"
   */
  public void setAThing(AThing aThing) {
      this.aThing = aThing;
  }

.... then a reflection using adapter could invoke these methods during lifecycle at the same point that Serviceable would have been invoked.

Thoughts?  Neat?  Too much work for such a small thing ?

- Paul


-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to