You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2008/12/12 12:23:19 UTC

svn commit: r725968 - /myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ApplicationPostConstructEvent.java

Author: werpu
Date: Fri Dec 12 03:23:18 2008
New Revision: 725968

URL: http://svn.apache.org/viewvc?rev=725968&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2091


thank you Jan for providing the patch
 

Modified:
    myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ApplicationPostConstructEvent.java

Modified: myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ApplicationPostConstructEvent.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ApplicationPostConstructEvent.java?rev=725968&r1=725967&r2=725968&view=diff
==============================================================================
--- myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ApplicationPostConstructEvent.java (original)
+++ myfaces/core/branches/2_0_0/api/src/main/java/javax/faces/event/ApplicationPostConstructEvent.java Fri Dec 12 03:23:18 2008
@@ -26,10 +26,17 @@
  * 
  * @since 2.0
  */
-public class ApplicationPostConstructEvent extends SystemEvent
-{
-    public ApplicationPostConstructEvent(Application application)
-    {
+public class ApplicationPostConstructEvent extends SystemEvent {
+
+    public ApplicationPostConstructEvent(Application application) {
         super(application);
     }
+
+    /**
+     * @return the application object tied to this event
+     */
+    public Application getApplication() {
+        return (Application) getSource();
+
+    }
 }