Juanjo,

> > Is there any sample of an AdapterFactory, so that I can
> document this?
>
> AFAIK, there isn´t any example so far.
>
> However, the own OCM bundle implementation is based on an
> AdapterFactory [1]. So, I understand this might be a good starting
> point.
>
> This service is registered as OSGi service through a constructor
> method, but I suppose this migth be done using declarative services as
> it´s done in [2]. Pretty straightforward.
>
> Regards,
>
> Juanjo.
>
> [1]
> http://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/ocm/sr
c/main/java/org/apache/sling/jcr/ocm/impl/OcmAdapterFactory.java
[2] 
http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/adapter/src/main/java/org/apache/sling/adapter/internal/AdapterManagerImpl.java


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

best regards
mike

Reply via email to