Author: peteroyle
Date: 2009-06-17 11:39:25 -0400 (Wed, 17 Jun 2009)
New Revision: 2840
Modified:
examples/trunk/se/hello-world/src/main/java/org/jboss/webbeans/environment/se/example/simple/CommandLineArgsValidator.java
examples/trunk/se/hello-world/src/main/java/org/jboss/webbeans/environment/se/example/simple/HelloWorld.java
Log:
Brought up to latest spec, observing new manager initialisation events.
Modified:
examples/trunk/se/hello-world/src/main/java/org/jboss/webbeans/environment/se/example/simple/CommandLineArgsValidator.java
===================================================================
---
examples/trunk/se/hello-world/src/main/java/org/jboss/webbeans/environment/se/example/simple/CommandLineArgsValidator.java 2009-06-17
15:37:44 UTC (rev 2839)
+++
examples/trunk/se/hello-world/src/main/java/org/jboss/webbeans/environment/se/example/simple/CommandLineArgsValidator.java 2009-06-17
15:39:25 UTC (rev 2840)
@@ -19,8 +19,8 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import javax.context.ApplicationScoped;
-import javax.inject.Initializer;
+import javax.enterprise.context.ApplicationScoped;
+import javax.enterprise.inject.Initializer;
import org.jboss.webbeans.environment.se.bindings.Parameters;
/**
Modified:
examples/trunk/se/hello-world/src/main/java/org/jboss/webbeans/environment/se/example/simple/HelloWorld.java
===================================================================
---
examples/trunk/se/hello-world/src/main/java/org/jboss/webbeans/environment/se/example/simple/HelloWorld.java 2009-06-17
15:37:44 UTC (rev 2839)
+++
examples/trunk/se/hello-world/src/main/java/org/jboss/webbeans/environment/se/example/simple/HelloWorld.java 2009-06-17
15:39:25 UTC (rev 2840)
@@ -16,10 +16,9 @@
*/
package org.jboss.webbeans.environment.se.example.simple;
+import javax.enterprise.inject.Current;
+import javax.enterprise.inject.spi.AfterDeploymentValidation;
import javax.event.Observes;
-import javax.inject.Current;
-import javax.inject.manager.Deployed;
-import javax.inject.manager.Manager;
/**
* @author Peter Royle
@@ -35,7 +34,7 @@
* @param firstName The first name.
*/
public void printHello( @Observes
- @Deployed Manager manager )
+ AfterDeploymentValidation after )
{
if (!argsVlidator.hasErrors())
{