[ 
https://issues.apache.org/jira/browse/SLING-9555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated SLING-9555:
-----------------------------------
    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
{code}
@Component(property = { 
ResourceChangeListener.CHANGES+"="+ResourceChange.ChangeType.REMOVED.toString()"}
)
{code}
        Summary: Define ResourceChange.ChangeType also as constant string 
values  (was: Define ResourceChange.ChangeType also as constant string vallues)

> Define ResourceChange.ChangeType also as constant string values
> ---------------------------------------------------------------
>
>                 Key: SLING-9555
>                 URL: https://issues.apache.org/jira/browse/SLING-9555
>             Project: Sling
>          Issue Type: Improvement
>            Reporter: Konrad Windszus
>            Priority: Major
>
> 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
> {code}
> @Component(property = { 
> ResourceChangeListener.CHANGES+"="+ResourceChange.ChangeType.REMOVED.toString()"}
> )
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to