Hi Alex, > -----Original Message----- > From: Alexander Klimetschek [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 18, 2008 10:01 AM > To: [email protected] > Subject: Re: Can't resource.adaptTo my AbstractMappedObject > > 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 >
Is that something new then? I didn't have to do this before ... I thought that the OCM or SCR or something took care of doing that for me, at least I assumed that ;-) > Regards, > Alex > > -- > Alexander Klimetschek > [EMAIL PROTECTED] >
