You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2010/06/18 10:45:25 UTC
[jira] Resolved: (FELIX-2420) Enum support for @Property annotation
[ https://issues.apache.org/jira/browse/FELIX-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clement Escoffier resolved FELIX-2420.
--------------------------------------
Fix Version/s: iPOJO-1.8.0
Resolution: Fixed
Fixed in the trunk.
The enumaration boject is create by calling valueOf with the given String.
So:
@Property
private Day day;
//with a configuration containing day: MONDAY
@Property(value="MONDAY")
private Day day;
@Property(name=day)
public void setDay(Day d) { ... }
are supported now
> Enum support for @Property annotation
> -------------------------------------
>
> Key: FELIX-2420
> URL: https://issues.apache.org/jira/browse/FELIX-2420
> Project: Felix
> Issue Type: Improvement
> Components: iPOJO
> Reporter: Joel Schuster
> Assignee: Clement Escoffier
> Priority: Minor
> Fix For: iPOJO-1.8.0
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> It would be nice if the @Property annotation would support Enum types as well as the String and numeric types.
> Ideally the value would be taken as a String or numeric and the appropriate Enum would be chosen based on the valueOf method or the ordinal.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.