Author: peteroyle
Date: 2009-07-21 05:24:53 -0400 (Tue, 21 Jul 2009)
New Revision: 3108
Modified:
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/ShutdownManager.java
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/beans/ParametersFactory.java
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/util/WebBeansManagerUtils.java
extensions/trunk/se/src/test/java/org/jboss/webbeans/environment/se/test/beans/MainTestBean.java
Log:
Some basic API changes.
Modified:
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/ShutdownManager.java
===================================================================
---
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/ShutdownManager.java 2009-07-21
09:03:23 UTC (rev 3107)
+++
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/ShutdownManager.java 2009-07-21
09:24:53 UTC (rev 3108)
@@ -1,9 +1,9 @@
package org.jboss.webbeans.environment.se;
import javax.enterprise.context.ApplicationScoped;
+import javax.enterprise.event.Observes;
import javax.enterprise.inject.Current;
import javax.enterprise.inject.spi.BeanManager;
-import javax.event.Observes;
import org.jboss.webbeans.bootstrap.api.Bootstrap;
import org.jboss.webbeans.environment.se.events.Shutdown;
Modified:
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/beans/ParametersFactory.java
===================================================================
---
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/beans/ParametersFactory.java 2009-07-21
09:03:23 UTC (rev 3107)
+++
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/beans/ParametersFactory.java 2009-07-21
09:24:53 UTC (rev 3108)
@@ -22,10 +22,9 @@
import java.util.List;
import javax.enterprise.context.ApplicationScoped;
+import javax.enterprise.event.Observes;
import javax.enterprise.inject.Produces;
import javax.enterprise.inject.spi.AfterBeanDiscovery;
-import javax.enterprise.inject.spi.BeforeBeanDiscovery;
-import javax.event.Observes;
import org.jboss.webbeans.environment.se.StartMain;
import org.jboss.webbeans.environment.se.bindings.Parameters;
Modified:
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/util/WebBeansManagerUtils.java
===================================================================
---
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/util/WebBeansManagerUtils.java 2009-07-21
09:03:23 UTC (rev 3107)
+++
extensions/trunk/se/src/main/java/org/jboss/webbeans/environment/se/util/WebBeansManagerUtils.java 2009-07-21
09:24:53 UTC (rev 3108)
@@ -21,12 +21,12 @@
/**
*
- * @author PeteR
+ * @author Peter Royle
*/
public class WebBeansManagerUtils {
public static <T> T getInstanceByType(BeanManager manager, Class<T> type,
Annotation... bindings) {
return (T)manager.getReference(
- manager.getBeans(type).iterator().next(), type);
+ manager.getBeans(type).iterator().next(), type, null);
}
}
Modified:
extensions/trunk/se/src/test/java/org/jboss/webbeans/environment/se/test/beans/MainTestBean.java
===================================================================
---
extensions/trunk/se/src/test/java/org/jboss/webbeans/environment/se/test/beans/MainTestBean.java 2009-07-21
09:03:23 UTC (rev 3107)
+++
extensions/trunk/se/src/test/java/org/jboss/webbeans/environment/se/test/beans/MainTestBean.java 2009-07-21
09:24:53 UTC (rev 3108)
@@ -17,10 +17,10 @@
package org.jboss.webbeans.environment.se.test.beans;
import javax.enterprise.context.ApplicationScoped;
+import javax.enterprise.event.Observes;
import javax.enterprise.inject.Current;
import javax.enterprise.inject.Initializer;
import javax.enterprise.inject.spi.AfterDeploymentValidation;
-import javax.event.Observes;
/**
*
Show replies by date