... > > What's the contract for the auto-wiring? Just assuming > ClassA and ClassB > > have public static fields called ROLE? Sounds somewhat "strange". > > > No, the contract would be to search for a component which is > registered > using the ClassA as the role name. Actually ClassA and ClassB are two > interfaces.
Hmm, so what do you do about the hints? Often enough, I see "o.a.c.something.SomeInterface/hint" (like "o.a.c.caching.Cache/EventAware") in cocoon. This wouldn't work with your assumptions of always using FQCNs as service names. max