If you implement this interface inside a Bean Archive (a JAR or ClassPath entry with a META-INF/beans.xml file), the property files with the given file name will be registered as {@link org.apache.deltaspike.core.spi.config.ConfigSource}s.
DeltaSpike will automatically pickup all the implementations during the {@link javax.enterprise.inject.spi.ProcessAnnotatedType}phase and create a new instance via reflection. Thus the implementations will need a non-private default constructor. There is no CDI injection being performed in those instances! The scope of the implementations will also be ignored as they will not get picked up as CDI beans.
Please note that the configuration will only be available after the boot is finished. This means that you cannot use this configuration inside a CDI Extension before the boot is finished!
|
|