Hi folks,

I got a quick Question:
I'd like to implement some kind of "Service Registry" in Spring (OSGi is not an option).

One Solution is automatic service discovery by the registry:

Letting the registry find all Service instances in the ApplicationContext itself, through any of the bean lifecycle callbacks in combination with ApplicationContextAware. That makes the registry "magically" work.

Another way would be letting the services register themselves, but I haven't found a clear, simple, concise and Spring-like way of doinig it. Any ideas?

Any other options, I forgot?