Hi Felix > Hi, > > Juan José Vázquez Delgado schrieb: > >> thanxs for the hints, the documentation now available under [1]. > >> I took big parts from Felix documentation in the public wiki. > >> Please feel free to adjust/correct me. > >> > >> [1] http://cwiki.apache.org/confluence/display/SLINGxSITE/Adapters > > > > Cool stuff Mike. Thanks a lot!. > > Indeed! Thanks from me, too. > > Just some minor things: The AdapterManager service uses to the > AdapterFactory services and their adaptables/adapter properties to > select the best suited AdapterFactory to forward the > getAdapter call to. > > An in fact, the adaptable Object of the AdapterManager service (and > hence the AdapterFactory services) are not even required to > be Adaptable > implementations, they may be any object. > > The Adaptable interface is merely an indicator to application > code, that > an object provides built-in support for being adapted.
I extended the documentation in that way. > Furthermore, Adaptable implementations may have hard-coded > implementations of the adaptTo method, like the JCR based > Resource which > do not actually employ the AdapterManager to adapt the > resource to a node. I can't find that in the actual code: Every implementation of the Resource interface like JcrItemResource extends SlingAdaptable which does call the AdapterManagerImpl in the adaptTo method. Or do I missed something? best regards mike
