You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (Commented) (JIRA)" <ji...@apache.org> on 2012/03/07 22:38:57 UTC

[jira] [Commented] (DELTASPIKE-114) @ConfigProperty based on ConfigResolver

    [ https://issues.apache.org/jira/browse/DELTASPIKE-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224739#comment-13224739 ] 

Gerhard Petracek commented on DELTASPIKE-114:
---------------------------------------------

optional support for:

@ConfigProperty(name = "pool_size", eager = true, converter = StringToIntegerConverter.class)
public @interface PoolSize
{
}

@Inject
@PoolSize
private int configuredPoolSize;

eager should be true by default -> the configured value gets converted during bootstrapping (if the value has an invalid format the bootstrapping process fails).
if eager is false, the configured value will be converted directly before the injection (e.g. for values stored in dynamic config-sources).
                
> @ConfigProperty based on ConfigResolver
> ---------------------------------------
>
>                 Key: DELTASPIKE-114
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-114
>             Project: DeltaSpike
>          Issue Type: New Feature
>          Components: Core
>    Affects Versions: 0.1-incubating
>            Reporter: gonzalad
>            Assignee: Gerhard Petracek
>             Fix For: 0.2-incubating
>
>
> @Produces
> public MyBean produceMyBean(@ConfigProperty("propertyA") String propertyA, @ConfigProperty("propertyB") String propertyB)
>   //...
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira