You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2011/02/11 14:11:57 UTC

[jira] Created: (FELIX-2838) Allow classes to be specifed as values for the @Property annotation

Allow classes to be specifed as values for the @Property annotation
-------------------------------------------------------------------

                 Key: FELIX-2838
                 URL: https://issues.apache.org/jira/browse/FELIX-2838
             Project: Felix
          Issue Type: Improvement
          Components: SCR Annotations
    Affects Versions: scr annotations 1.4.0
            Reporter: Felix Meschberger
             Fix For: scr annotations 1.4.2


Sometimes the value of a DS property should be a fully qualified class name. In such cases these names must be written as class literals for the annotation to be processed.

It would be nice if one could write something like

   @Property(name=theProperty, classValue=some.special.Operation.class)

to actually cause a string (or multi-value string) property of the form

   theProperty = "some.special.Operation"

to be generated.

One such example is the value(s) of the "adaptables" and "adapters" service registration properties of Sling AdapterFactory services.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (FELIX-2838) Allow classes to be specifed as values for the @Property annotation

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated FELIX-2838:
------------------------------------

    Fix Version/s: scr ant task 1.0.2

> Allow classes to be specifed as values for the @Property annotation
> -------------------------------------------------------------------
>
>                 Key: FELIX-2838
>                 URL: https://issues.apache.org/jira/browse/FELIX-2838
>             Project: Felix
>          Issue Type: Improvement
>          Components: SCR Annotations
>    Affects Versions:  maven-scr-plugin-1.6.0, scr annotations 1.4.0
>            Reporter: Felix Meschberger
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.7.0, scr ant task 1.0.2, scr annotations 1.5.0
>
>
> Sometimes the value of a DS property should be a fully qualified class name. In such cases these names must be written as class literals for the annotation to be processed.
> It would be nice if one could write something like
>    @Property(name=theProperty, classValue=some.special.Operation.class)
> to actually cause a string (or multi-value string) property of the form
>    theProperty = "some.special.Operation"
> to be generated.
> One such example is the value(s) of the "adaptables" and "adapters" service registration properties of Sling AdapterFactory services.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Assigned: (FELIX-2838) Allow classes to be specifed as values for the @Property annotation

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler reassigned FELIX-2838:
---------------------------------------

    Assignee: Carsten Ziegeler

> Allow classes to be specifed as values for the @Property annotation
> -------------------------------------------------------------------
>
>                 Key: FELIX-2838
>                 URL: https://issues.apache.org/jira/browse/FELIX-2838
>             Project: Felix
>          Issue Type: Improvement
>          Components: SCR Annotations
>    Affects Versions: scr annotations 1.4.0
>            Reporter: Felix Meschberger
>            Assignee: Carsten Ziegeler
>             Fix For: scr annotations 1.4.2
>
>
> Sometimes the value of a DS property should be a fully qualified class name. In such cases these names must be written as class literals for the annotation to be processed.
> It would be nice if one could write something like
>    @Property(name=theProperty, classValue=some.special.Operation.class)
> to actually cause a string (or multi-value string) property of the form
>    theProperty = "some.special.Operation"
> to be generated.
> One such example is the value(s) of the "adaptables" and "adapters" service registration properties of Sling AdapterFactory services.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (FELIX-2838) Allow classes to be specifed as values for the @Property annotation

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved FELIX-2838.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: maven-scr-plugin-1.6.2

Added new classValue to the Property annotation in revision 1073416

> Allow classes to be specifed as values for the @Property annotation
> -------------------------------------------------------------------
>
>                 Key: FELIX-2838
>                 URL: https://issues.apache.org/jira/browse/FELIX-2838
>             Project: Felix
>          Issue Type: Improvement
>          Components: SCR Annotations
>    Affects Versions:  maven-scr-plugin-1.6.0, scr annotations 1.4.0
>            Reporter: Felix Meschberger
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.6.2, scr annotations 1.5.0
>
>
> Sometimes the value of a DS property should be a fully qualified class name. In such cases these names must be written as class literals for the annotation to be processed.
> It would be nice if one could write something like
>    @Property(name=theProperty, classValue=some.special.Operation.class)
> to actually cause a string (or multi-value string) property of the form
>    theProperty = "some.special.Operation"
> to be generated.
> One such example is the value(s) of the "adaptables" and "adapters" service registration properties of Sling AdapterFactory services.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (FELIX-2838) Allow classes to be specifed as values for the @Property annotation

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed FELIX-2838.
-----------------------------------


> Allow classes to be specifed as values for the @Property annotation
> -------------------------------------------------------------------
>
>                 Key: FELIX-2838
>                 URL: https://issues.apache.org/jira/browse/FELIX-2838
>             Project: Felix
>          Issue Type: Improvement
>          Components: SCR Annotations
>    Affects Versions:  maven-scr-plugin-1.6.0, scr annotations 1.4.0
>            Reporter: Felix Meschberger
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.7.0, scr ant task 1.1.0, scr annotations 1.5.0
>
>
> Sometimes the value of a DS property should be a fully qualified class name. In such cases these names must be written as class literals for the annotation to be processed.
> It would be nice if one could write something like
>    @Property(name=theProperty, classValue=some.special.Operation.class)
> to actually cause a string (or multi-value string) property of the form
>    theProperty = "some.special.Operation"
> to be generated.
> One such example is the value(s) of the "adaptables" and "adapters" service registration properties of Sling AdapterFactory services.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Updated: (FELIX-2838) Allow classes to be specifed as values for the @Property annotation

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated FELIX-2838:
------------------------------------

    Affects Version/s:  maven-scr-plugin-1.6.0

> Allow classes to be specifed as values for the @Property annotation
> -------------------------------------------------------------------
>
>                 Key: FELIX-2838
>                 URL: https://issues.apache.org/jira/browse/FELIX-2838
>             Project: Felix
>          Issue Type: Improvement
>          Components: SCR Annotations
>    Affects Versions:  maven-scr-plugin-1.6.0, scr annotations 1.4.0
>            Reporter: Felix Meschberger
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.6.2, scr annotations 1.5.0
>
>
> Sometimes the value of a DS property should be a fully qualified class name. In such cases these names must be written as class literals for the annotation to be processed.
> It would be nice if one could write something like
>    @Property(name=theProperty, classValue=some.special.Operation.class)
> to actually cause a string (or multi-value string) property of the form
>    theProperty = "some.special.Operation"
> to be generated.
> One such example is the value(s) of the "adaptables" and "adapters" service registration properties of Sling AdapterFactory services.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira