You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by Thomas Andraschko <an...@gmail.com> on 2013/02/14 16:19:23 UTC

[Proposal] Eager AppScoped beans

Hi,

could we add a eager ApplicationScoped mechanism? Similiar to
@ManagedBean(eager=true)?
Some people asked my the last months about such a mechanism :)

I think we could easily add a @Eager annotation, collect those beans on
startup and call e.g. toString() on the bean reference while observing
AfterDeploymentValidation.

Regards,
Thomas

Re: [Proposal] Eager AppScoped beans

Posted by Gerhard Petracek <ge...@gmail.com>.
hi thomas,

please have a look at [1].

regards,
gerhard

[1] http://s.apache.org/3In



2013/2/14 Thomas Andraschko <an...@gmail.com>

> Hi,
>
> could we add a eager ApplicationScoped mechanism? Similiar to
> @ManagedBean(eager=true)?
> Some people asked my the last months about such a mechanism :)
>
> I think we could easily add a @Eager annotation, collect those beans on
> startup and call e.g. toString() on the bean reference while observing
> AfterDeploymentValidation.
>
> Regards,
> Thomas
>