You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ju...@apache.org on 2014/01/23 16:13:23 UTC

svn commit: r1560710 - /sling/site/trunk/content/documentation/bundles/models.mdtext

Author: justin
Date: Thu Jan 23 15:13:22 2014
New Revision: 1560710

URL: http://svn.apache.org/r1560710
Log:
adding custom injector information

Modified:
    sling/site/trunk/content/documentation/bundles/models.mdtext

Modified: sling/site/trunk/content/documentation/bundles/models.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/models.mdtext?rev=1560710&r1=1560709&r2=1560710&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/models.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/models.mdtext Thu Jan 23 15:13:22 2014
@@ -208,6 +208,10 @@ If the injected object does not match th
 
 When a resource is adapted to `MyModel`, a child resource named `image` is automatically adapted to an instance of `ImageModel`.
 
+# Custom Injectors
+
+To create a custom injector, simply implement the `org.apache.sling.models.spi.Injector` interface and register your implementation with the OSGi service registry. Please refer to the standard injectors in [Subversion](http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/impl/src/main/java/org/apache/sling/models/impl/injectors/) for examples.
+
 # Annotation Reference
 `@Model`
 :   declares a model class or interface