myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (EXTCDI-112) startup event
Date Thu, 30 Dec 2010 18:17:45 GMT
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


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.


Mime
View raw message