Hi,
I'm following the documentation at [1] to register a new adapter
factory service. I'm using the SlingContext @Rule for this.
What I see is that the short form does not work
context.registerService(new MyAdapterFactory());
However, the long form works
context.registerService(AdapterFactory.class, new MyAdapterFactory());
I'm not sure whether this is intended ( and therefore the docs should
be adjusted ) or a bug ( and therefore the code should be fixed ).
Thoughts?
Robert
[1]:
http://sling.apache.org/documentation/development/sling-mock.html#adapter-factories