Em Wed, 19 Nov 2008 15:31:16 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> escreveu:

Interesting idea.  You could probably put something together around
ClassNameLocator, i.e., a wrapper that given package names, find
interfaces inside those packages that have matching Impl classes. i.e.

public static void bind(ServiceBinder binder)
{
  new AutoServiceBinder("my.package.root").bind(binder);
}

How can I get a ClassNameLocator instance in bind(ServiceBinder binder)?
Trying to inject through public static void bind(ServiceBinder binder, ClassNameLocator classNameLocator) does not work (method is never invoked). It must be static, so I cannot use a constructor in my module class.

And what about the creation of default implementation for unbound services?

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

Reply via email to