I am using a small helper class to Inject Services into my not-managed domain
objects:
public class Service {
private static final Registry registry =
IOCUtilities.buildDefaultRegistry();
public static <T> T get(Class<T> clazz) {
return registry.getService(clazz);
}
}
Piero
On Mittwoch, 29. April 2009 21:10:45 daniel joyce wrote:
> So basically once I start using Injection, every class that uses a
> injected class needs to be injected itself.
>
> It would be nice if this could be improved upon, thus allowing
> 'services' and non-page, non-service business objects to play nicely
> together.
>
> -Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]