deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject @Config without @inject?
Date Fri, 20 Jul 2012 22:13:45 GMT
Hi,

was wondering if we couldn't provide a @Config or support @ConfigProperty
(let say a marking annotation for the moment) for static conf avoiding
@Inject? it is more readable for me

wonder what you think about trying to make things shorter (while meta
annotations are not in cdi itself)

typically:

public class Pool {
    @Config("pool.size")
    private int size;
}

- Romain

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message