On Wed, Jun 18, 2008 at 5:07 PM, Craig L. Ching <[EMAIL PROTECTED]> wrote: > Is that something new then? I didn't have to do this before ...
I think it is quite new. But AFAIK it is an additional feature compared to the standard way of implementing Adaptable in your Resource class. It allows to build "adaptation" outside the affected classes. > I thought that the OCM or SCR or something took care of doing that for me, > at least I assumed that ;-) OCM is not involved here. SCR is a generic component / dependency-injection framework in Apache Felix. You always have to configure it, preferrably with the @scr.* javadoc tags that are converted into the actual component xml description files by the maven-scr-plugin. That's how its done throughout Sling. What properties are available and who will be picking up the component or service depends on the service. For the AdaptableFactory it's the AdaptableManagerImpl, that you debugged, which referencs all AdapterFactories that are registered as scr components/services. Regards, Alex -- Alexander Klimetschek [EMAIL PROTECTED]
