Package org.apache.sling.adapter
Interface Adaption
-
public interface Adaption
The Adaption is a marker interface which is registered as a service by the AdapterManager once a certain AdapterFactory is availableIts intended use is to make it simple for declarative service components to wait for a certain AdapterFactory to be available
A usage sample is
@Reference(referenceInterface=Adaption.class,target="(&(adaptables=com.myco.MyClass)(adapters=org.apache.sling.api.Resource))", name = "ignore", strategy = ReferenceStrategy.LOOKUP)