ds: For Logger injection dev must specify service=LoggerFactory.class
This changes the requirement for the annotation processing tool to
infer the service is LoggerFactory in the generated XML. Now the dev
must explicitly state the service is LoggerFactory.
@@ -83,10 +83,7 @@ public @interface Reference {
* upon how this annotation is used:
* <ul>
* <li>Annotated method - The type of the service is the type of the first
- * parameter of the method unless the type of the first parameter is
- * {@code org.osgi.service.log.Logger} or
- * {@code org.osgi.service.log.FormatterLogger}, in which case, the type of
- * the service is {@code org.osgi.service.log.LoggerFactory}.</li>
+ * parameter of the method.</li>
* <li>Annotated field - The type of the service is based upon the type of
* the field being annotated and the cardinality of the reference. If the
* cardinality is either {@link ReferenceCardinality#MULTIPLE 0..n}, or
@@ -94,10 +91,7 @@ public @interface Reference {
* must be one of {@code java.util.Collection}, {@code java.util.List}, or a
* subtype of {@code java.util.Collection} so the type of the service is the
* generic type of the collection. Otherwise, the type of the service is the
- * type of the field unless the type of the field is
- * {@code org.osgi.service.log.Logger} or
- * {@code org.osgi.service.log.FormatterLogger}, in which case, the type of
- * the service is {@code org.osgi.service.log.LoggerFactory}.</li>
+ * type of the field.</li>
* <li>Annotated {@code activate} method parameter - The type of the service
* is based upon the type of the parameter being annotated and the
* cardinality of the reference. If the cardinality is either
@@ -106,10 +100,7 @@ public @interface Reference {
* must be one of {@code java.util.Collection}, {@code java.util.List}, or a
* subtype of {@code java.util.Collection} so the type of the service is the
* generic type of the collection. Otherwise, the type of the service is the
- * type of the parameter unless the type of the parameter is
- * {@code org.osgi.service.log.Logger} or
- * {@code org.osgi.service.log.FormatterLogger}, in which case, the type of
- * the service is {@code org.osgi.service.log.LoggerFactory}.</li>
+ * type of the parameter.</li>
* </ul>
*
* @see "The interface attribute of the reference element of a Component Description."
