Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
As all annotation values have to be provided as constants (e.g. in https://docs.osgi.org/javadoc/r6/residential/org/osgi/service/component/annotations/Component.html#property()) and conversion from Enum to String cannot be resolved at compile time all enum values of ResourceChange.ChangeType should also be provided as String constants.
Something like this does not work
@Component(property = { ResourceChangeListener.CHANGES+"="+ResourceChange.ChangeType.REMOVED.toString()}
)
Compare with https://stackoverflow.com/a/13253879.
Attachments
Issue Links
- links to