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 2015/04/08 14:34:58 UTC

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

Author: justin
Date: Wed Apr  8 12:34:57 2015
New Revision: 1672077

URL: http://svn.apache.org/r1672077
Log:
adding version indicator for sling models injectors

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=1672077&r1=1672076&r2=1672077&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/models.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/models.mdtext Wed Apr  8 12:34:57 2015
@@ -359,16 +359,16 @@ Injectors are invoked in order of their
 
 # Available Injectors
 
-Title              |  Name (for `@Source`)   | Service Ranking     | Description  | Applicable To (including using `@Via`) | Accepts Null Name? | Array Support | Parameterized Type Support
------------------  | ----------------------- | ------------------- | ------------ | -------------------------------------- | ------------------ | ------------- | --------------------------
-Script Bindings    | `script-bindings`       | 1000                | Lookup objects in the script bindings object | A ServletRequest object which has the `Sling Bindings` attribute defined | no | no conversion is done | If a parameterized type is passed, the bindings value must be of a compatible type of the parameterized type.
-Value Map          | `valuemap`              | 2000                | Gets a property from a `ValueMap` | Any object which is or can be adapted to a `ValueMap`| no | Primitive arrays wrapped/unwrapped as necessary. Wrapper object arrays are unwrapped/wrapped as necessary. | Parameterized `List` and `Collection` injection points are injected by getting an array of the component type and creating an unmodifiable `List` from the array.
-Child Resources    | `child-resources`       | 3000                | Gets a child resource by name | `Resource` objects | no | none | if a parameterized type is passed, a `List<Resource>` is returned (the contents of which may be adapted to the target type).
-Request Attributes | `request-attributes`    | 4000                | Get a request attribute       | `ServletRequest` objects | no | no conversion is done | If a parameterized type is passed, the request attribute must be of a compatible type of the parameterized type.
-OSGi Services      | `osgi-services`         | 5000                | Lookup services based on class name | Any object | yes | yes | Parameterized `List` and `Collection` injection points are injected by getting an array of the services and creating an unmodifiable `List` from the array.
-Resource Path      | `resource-path`         | 2500                | Injects a resource by its path. | `Resource` or `SlingHttpRequest` objects | yes | none | none
-Self               | `self`                  | `Integer.MAX_VALUE` | Injects the adaptable object itself (if the class of the field matches or is a supertype). If the @Self annotation is present it is tried to adapt the adaptable to the field type.  | Any object | yes | none | none
-Sling Object       | `sling-object`          | `Integer.MAX_VALUE` | Injects commonly used sling objects if the field matches with the class: request, response, resource resolver, current resource, SlingScriptHelper | `Resource`, `ResourceResolver` or `SlingHttpRequest` objects | yes | none | none
+Title              |  Name (for `@Source`)   | Service Ranking     | Available Since (Implementation Version) | Description  | Applicable To (including using `@Via`) | Accepts Null Name? | Array Support | Parameterized Type Support
+-----------------  | ----------------------- | ------------------- | ---------------------------------------- | ------------ | -------------------------------------- | ------------------ | ------------- | --------------------------
+Script Bindings    | `script-bindings`       | 1000                | 1.0.0                                    | Lookup objects in the script bindings object | A ServletRequest object which has the `Sling Bindings` attribute defined | no | no conversion is done | If a parameterized type is passed, the bindings value must be of a compatible type of the parameterized type.
+Value Map          | `valuemap`              | 2000                | 1.0.0                                    | Gets a property from a `ValueMap` | Any object which is or can be adapted to a `ValueMap`| no | Primitive arrays wrapped/unwrapped as necessary. Wrapper object arrays are unwrapped/wrapped as necessary. | Parameterized `List` and `Collection` injection points are injected by getting an array of the component type and creating an unmodifiable `List` from the array.
+Child Resources    | `child-resources`       | 3000                | 1.0.0                                    | Gets a child resource by name | `Resource` objects | no | none | if a parameterized type is passed, a `List<Resource>` is returned (the contents of which may be adapted to the target type).
+Request Attributes | `request-attributes`    | 4000                | 1.0.0                                    | Get a request attribute       | `ServletRequest` objects | no | no conversion is done | If a parameterized type is passed, the request attribute must be of a compatible type of the parameterized type.
+OSGi Services      | `osgi-services`         | 5000                | 1.0.0                                    | Lookup services based on class name | Any object | yes | yes | Parameterized `List` and `Collection` injection points are injected by getting an array of the services and creating an unmodifiable `List` from the array.
+Resource Path      | `resource-path`         | 2500                | 1.1.0                                    | Injects a resource by its path. | `Resource` or `SlingHttpRequest` objects | yes | none | none
+Self               | `self`                  | `Integer.MAX_VALUE` | 1.1.0                                    | Injects the adaptable object itself (if the class of the field matches or is a supertype). If the @Self annotation is present it is tried to adapt the adaptable to the field type.  | Any object | yes | none | none
+Sling Object       | `sling-object`          | `Integer.MAX_VALUE` | 1.1.0                                    | Injects commonly used sling objects if the field matches with the class: request, response, resource resolver, current resource, SlingScriptHelper | `Resource`, `ResourceResolver` or `SlingHttpRequest` objects | yes | none | none
 
 # Injector-specific Annotations (Since Sling Models Impl 1.0.6)