Author: petemuir
Date: 2010-10-31 14:00:37 -0400 (Sun, 31 Oct 2010)
New Revision: 7073
Modified:
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Farmer.java
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/StockWatcher.java
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/notBusinessMethod/Terrier.java
Log:
CDITCK-186
Modified:
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Farmer.java
===================================================================
---
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Farmer.java 2010-10-31
15:41:43 UTC (rev 7072)
+++
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/Farmer.java 2010-10-31
18:00:37 UTC (rev 7073)
@@ -18,7 +18,7 @@
import javax.enterprise.event.Observes;
-class Farmer
+public class Farmer
{
public void observeEggLaying(@Observes Egg egg)
Modified:
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/StockWatcher.java
===================================================================
---
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/StockWatcher.java 2010-10-31
15:41:43 UTC (rev 7072)
+++
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/StockWatcher.java 2010-10-31
18:00:37 UTC (rev 7073)
@@ -17,36 +17,12 @@
package org.jboss.jsr299.tck.tests.event;
import javax.enterprise.event.Observes;
-import javax.enterprise.inject.Any;
class StockWatcher
{
- private static Class<?> observerClazz;
- private static boolean anyVolumeObserved = false;
public void observeStockPrice(@Observes StockPrice price)
{
- observerClazz = this.getClass();
price.recordVisit(this);
}
-
- public void observeAllVolume(@Observes @Any Volume volume)
- {
- anyVolumeObserved = true;
- }
-
- public static Class<?> getObserverClazz()
- {
- return observerClazz;
- }
-
- public static boolean isAnyVolumeObserved()
- {
- return anyVolumeObserved;
- }
-
- public static void setAnyVolumeObserved(boolean anyStockPriceObserved)
- {
- StockWatcher.anyVolumeObserved = anyStockPriceObserved;
- }
}
Modified:
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/notBusinessMethod/Terrier.java
===================================================================
---
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/notBusinessMethod/Terrier.java 2010-10-31
15:41:43 UTC (rev 7072)
+++
cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/event/broken/observer/notBusinessMethod/Terrier.java 2010-10-31
18:00:37 UTC (rev 7073)
@@ -19,7 +19,7 @@
import javax.ejb.Local;
@Local
-interface Terrier
+public interface Terrier
{
}
Show replies by date