Hi Alex, Am Mittwoch, den 18.06.2008, 17:01 +0200 schrieb Alexander Klimetschek: > On Wed, Jun 18, 2008 at 4:11 PM, Craig L. Ching <[EMAIL PROTECTED]> wrote: > >> Looking into it further, I don't seem to have a factory for > >> my class, according to this code in AdapterManagerImpl.java: > >> > >> // get the factory for the target type > >> AdapterFactory factory = factories.get(type.getName()); > > I think implementing an AdapterFactory and providing scr properties > "adaptables" and "adapters" should do the trick. Have a look at the > javadocs: > > http://svn.apache.org/repos/asf/incubator/sling/trunk/api/src/main/java/org/apache/sling/api/adapter/AdapterFactory.java
Your are partly right of course. But in the case of OCM, it is the jcr/ocm module, which takes care for registering the correct adapter factories based on the mapping descriptors. If this does not take place (anymore), I consider this a bug. I will have to look into this. Regards Felix
