+1
I completely agree with you to have CDI equivalent in DeltaSpike project.
That will avoid to add a
-Java Main class to boot the project
or like in weld - OSGI
- something like this
@Singleton
public class MainApp {
public void onStartup(@Observes
BundleContainerEvents.BundleContainerInitialized event) {
...
}
public void onShutdown(@Observes
BundleContainerEvents.BundleContainerShutdown event) {
...
}
}
Regards,
Charles
On Tue, Oct 16, 2012 at 8:23 AM, Romain Manni-Bucau
<[email protected]>wrote:
> Hi guys,
>
> after a talk with Charles i wonder if we couldn't add a kind of
> @Startup/@LoadOnStartup feature to DS.
>
> The idea could be to for the init of some bean with the last cdi event at
> startup.
>
> It could be used to force some init in standalone (cdictrl) or without
> being dependent of the environment (JSE, JEE, Web...)
>
> wdyt?
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com