You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org> on 2010/12/30 19:23:45 UTC

[jira] Resolved: (EXTCDI-112) startup event

     [ https://issues.apache.org/jira/browse/EXTCDI-112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gerhard Petracek resolved EXTCDI-112.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.2

> startup event
> -------------
>
>                 Key: EXTCDI-112
>                 URL: https://issues.apache.org/jira/browse/EXTCDI-112
>             Project: MyFaces CODI
>          Issue Type: New Feature
>          Components: Core, JEE-JSF12-Module, JEE-JSF20-Module
>    Affects Versions: 0.9.1
>            Reporter: Gerhard Petracek
>             Fix For: 0.9.2
>
>
> it should be possible to execute startup logic via an observer.
> e.g.:
> @ApplicationScoped
> public class StartupObserver
> {
>     @Inject
>     private Logger logger;
>     protected void logApplicationProperties(@Observes StartupEvent startupEvent)
>     {
>         for(Map.Entry<String, Serializable> property : startupEvent.getApplicationProperties().entrySet())
>         {
>             this.logger.info("key: " + property.getKey() + " value: " + property.getValue());
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.