m0rjc / CdiSettingsTool

Provide injectable settings in a J2EE bean in CDI. Apache Licence 2.0. Example of use in test area.
1 stars 2 forks source link

Make settings available sooner #1

Open m0rjc opened 12 years ago

m0rjc commented 12 years ago

People writing CDI extensions are finding that settings are not available when they create beans in the AfterBeanDiscovery phase, because I don't connect it until after deployment validation.

The reason for this late connection is because the bean I want may not be available AfterBeanDiscovery.

Provide a means of getting the bean at this earlier time.

m0rjc commented 12 years ago

The need for this has gone. It was realised that the properties provider in our example had to wait for the servlet container to initialise - long after CDI had completely finished. The bean that needed the settings now waits for an event that is fired by the properties provider once it has initialised. This is entirely outside the scope of this project.

The requirement is still interesting, so I leave the issue open for a while.