Author: pete.muir(a)jboss.org
Date: 2008-07-01 13:29:49 -0400 (Tue, 01 Jul 2008)
New Revision: 35
Added:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/ConstructorMetaModelTest.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Chicken.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Donkey.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Duck.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Goat.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Goose.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/SeaBass.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Sheep.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Turkey.java
Removed:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Trout.java
Modified:
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/util/LoggerUtil.java
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/util/Reflections.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/ComponentInstanceTest.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/annotations/Asynchronous.java
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/annotations/Synchronous.java
Log:
Tests and fixes for chapter 3.1, no support for @Specializes yet
Modified: ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/util/LoggerUtil.java
===================================================================
---
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/util/LoggerUtil.java 2008-07-01
17:28:51 UTC (rev 34)
+++
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/util/LoggerUtil.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -1,16 +1,21 @@
package org.jboss.webbeans.util;
import java.util.logging.Filter;
+import java.util.logging.Handler;
+import java.util.logging.Level;
import java.util.logging.Logger;
public class LoggerUtil
{
public static final String FILTER_PROPERTY =
"org.jboss.webbeans.logger.filter";
+ public static final String LEVEL_PROPERTY =
"org.jboss.webbeans.logger.level";
public static final String WEBBEANS_LOGGER = "javax.webbeans.";
private static Filter filter;
+
+ private static Level level;
static
{
@@ -24,14 +29,34 @@
{
throw new IllegalArgumentException("Unable to instantiate logging
filter");
}
+ String levelProperty = System.getProperty(LEVEL_PROPERTY);
+ if (levelProperty != null && !"".equals(levelProperty))
+ {
+ level = Level.parse(levelProperty);
+ }
+ if (level != null)
+ {
+ for (Handler handler : Logger.getLogger("").getHandlers())
+ {
+ handler.setLevel(level);
+ }
+ }
+
}
public static Logger getLogger(String name)
{
name = WEBBEANS_LOGGER + name;
Logger logger = Logger.getLogger(name);
- logger.setFilter(filter);
+ if (filter != null)
+ {
+ logger.setFilter(filter);
+ }
+ if (level != null)
+ {
+ logger.setLevel(level);
+ }
return logger;
}
Modified: ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/util/Reflections.java
===================================================================
---
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/util/Reflections.java 2008-07-01
17:28:51 UTC (rev 34)
+++
ri/trunk/webbeans-impl/src/main/java/org/jboss/webbeans/util/Reflections.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -66,7 +66,7 @@
public static <T> List<Constructor<T>> getConstructors(Class<?
extends T> clazz, Class<? extends Annotation> annotationType)
{
List<Constructor<T>> constructors = new
ArrayList<Constructor<T>>();
- for (Constructor<T> constructor : constructors)
+ for (Constructor<T> constructor : clazz.getConstructors())
{
if (constructor.isAnnotationPresent(annotationType))
{
@@ -79,7 +79,7 @@
public static <T> List<Constructor<T>>
getConstructorsForAnnotatedParameter(Class<? extends T> clazz, Class<? extends
Annotation> parameterAnnotationType)
{
List<Constructor<T>> constructors = new
ArrayList<Constructor<T>>();
- for (Constructor<T> constructor : constructors)
+ for (Constructor<T> constructor : clazz.getConstructors())
{
for (Annotation[] annotations : constructor.getParameterAnnotations())
{
@@ -98,7 +98,7 @@
public static <T> List<Constructor<T>>
getConstructorsForMetaAnnotatedParameter(Class<? extends T> clazz, Class<?
extends Annotation> metaAnnotationType)
{
List<Constructor<T>> constructors = new
ArrayList<Constructor<T>>();
- for (Constructor<T> constructor : constructors)
+ for (Constructor<T> constructor : clazz.getConstructors())
{
for (Annotation[] annotations : constructor.getParameterAnnotations())
{
Modified:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/ComponentInstanceTest.java
===================================================================
---
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/ComponentInstanceTest.java 2008-07-01
17:28:51 UTC (rev 34)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/ComponentInstanceTest.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -20,6 +20,7 @@
import org.jboss.webbeans.ComponentInstanceImpl;
import org.jboss.webbeans.ContainerImpl;
import org.jboss.webbeans.StereotypeMetaModel;
+import org.jboss.webbeans.ComponentInstanceImpl.ComponentType;
import org.jboss.webbeans.bindings.ConversationScopedBinding;
import org.jboss.webbeans.bindings.CurrentBinding;
import org.jboss.webbeans.bindings.DependentBinding;
@@ -58,7 +59,7 @@
import org.jboss.webbeans.test.components.Moose;
import org.jboss.webbeans.test.components.Order;
import org.jboss.webbeans.test.components.Pig;
-import org.jboss.webbeans.test.components.Trout;
+import org.jboss.webbeans.test.components.SeaBass;
import org.jboss.webbeans.test.components.Tuna;
import org.jboss.webbeans.test.mock.MockContainerImpl;
import org.jboss.webbeans.util.AnnotatedItem;
@@ -204,7 +205,7 @@
@Test
public void testScopeDeclaredInJava()
{
- ComponentInstance<Trout> trout = new ComponentInstanceImpl<Trout>(new
ClassAnnotatedItem(Trout.class), emptyAnnotatedItem, container);
+ ComponentInstance<SeaBass> trout = new
ComponentInstanceImpl<SeaBass>(new ClassAnnotatedItem(SeaBass.class),
emptyAnnotatedItem, container);
assert trout.getScopeType().annotationType().equals(RequestScoped.class);
}
@@ -224,8 +225,8 @@
{
Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
annotations.put(ConversationScoped.class, new ConversationScopedBinding());
- AnnotatedItem annotatedItem = new MutableAnnotatedItem(Trout.class, annotations);
- ComponentInstance<Trout> trout = new ComponentInstanceImpl<Trout>(new
ClassAnnotatedItem(Trout.class), annotatedItem, container);
+ AnnotatedItem annotatedItem = new MutableAnnotatedItem(SeaBass.class,
annotations);
+ ComponentInstance<SeaBass> trout = new
ComponentInstanceImpl<SeaBass>(new ClassAnnotatedItem(SeaBass.class), annotatedItem,
container);
assert trout.getScopeType().annotationType().equals(ConversationScoped.class);
}
@@ -233,9 +234,9 @@
public void testScopeMissingInXml()
{
Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
- AnnotatedItem annotatedItem = new MutableAnnotatedItem(Trout.class, annotations);
+ AnnotatedItem annotatedItem = new MutableAnnotatedItem(SeaBass.class,
annotations);
- ComponentInstance<Trout> trout = new ComponentInstanceImpl<Trout>(new
ClassAnnotatedItem(Trout.class), annotatedItem, container);
+ ComponentInstance<SeaBass> trout = new
ComponentInstanceImpl<SeaBass>(new ClassAnnotatedItem(SeaBass.class), annotatedItem,
container);
assert trout.getScopeType().annotationType().equals(RequestScoped.class);
}
@@ -285,8 +286,8 @@
{
Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
annotations.put(FishStereotype.class, new FishStereotypeBinding());
- AnnotatedItem annotatedItem = new MutableAnnotatedItem(Trout.class, annotations);
- ComponentInstance<Trout> trout = new ComponentInstanceImpl<Trout>(new
ClassAnnotatedItem(Trout.class), annotatedItem, container);
+ AnnotatedItem annotatedItem = new MutableAnnotatedItem(SeaBass.class,
annotations);
+ ComponentInstance<SeaBass> trout = new
ComponentInstanceImpl<SeaBass>(new ClassAnnotatedItem(SeaBass.class), annotatedItem,
container);
assert trout.getScopeType().annotationType().equals(RequestScoped.class);
}
@@ -316,9 +317,9 @@
Map<Class<? extends Annotation>, Annotation> annotations = new
HashMap<Class<? extends Annotation>, Annotation>();
annotations.put(FishStereotype.class, new FishStereotypeBinding());
annotations.put(AnimalStereotype.class, new AnimalStereotypeBinding());
- AnnotatedItem annotatedItem = new MutableAnnotatedItem(Trout.class, annotations);
+ AnnotatedItem annotatedItem = new MutableAnnotatedItem(SeaBass.class,
annotations);
- ComponentInstance<Trout> trout = new ComponentInstanceImpl<Trout>(new
ClassAnnotatedItem(Trout.class), annotatedItem, container);
+ ComponentInstance<SeaBass> trout = new
ComponentInstanceImpl<SeaBass>(new ClassAnnotatedItem(SeaBass.class), annotatedItem,
container);
assert trout.getScopeType().annotationType().equals(RequestScoped.class);
}
@@ -339,9 +340,10 @@
@Test
public void testNamed()
{
- ComponentInstance<Haddock> haddock = new
ComponentInstanceImpl<Haddock>(new ClassAnnotatedItem(Haddock.class),
emptyAnnotatedItem, container);
+ ComponentInstanceImpl<Haddock> haddock = new
ComponentInstanceImpl<Haddock>(new ClassAnnotatedItem(Haddock.class),
emptyAnnotatedItem, container);
assert haddock.getName() != null;
- // TODO Test naming algorithms
+ haddock.getComponentType().equals(ComponentType.SIMPLE);
+ assert haddock.getName().equals("haddock");
}
@Test
@@ -356,11 +358,12 @@
return "";
}
});
- AnnotatedItem annotatedItem = new MutableAnnotatedItem(Trout.class, annotations);
- ComponentInstance<Trout> trout = new ComponentInstanceImpl<Trout>(new
ClassAnnotatedItem(Trout.class), annotatedItem, container);
+ AnnotatedItem annotatedItem = new MutableAnnotatedItem(SeaBass.class,
annotations);
+ ComponentInstanceImpl<SeaBass> trout = new
ComponentInstanceImpl<SeaBass>(new ClassAnnotatedItem(SeaBass.class), annotatedItem,
container);
assert trout.getName() != null;
- // TODO Test naming algorithms
+ trout.getComponentType().equals(ComponentType.SIMPLE);
+ assert trout.getName().equals("seaBass");
}
@Test
@@ -375,8 +378,8 @@
return "aTrout";
}
});
- AnnotatedItem annotatedItem = new MutableAnnotatedItem(Trout.class, annotations);
- ComponentInstance<Trout> trout = new ComponentInstanceImpl<Trout>(new
ClassAnnotatedItem(Trout.class), annotatedItem, container);
+ AnnotatedItem annotatedItem = new MutableAnnotatedItem(SeaBass.class,
annotations);
+ ComponentInstance<SeaBass> trout = new
ComponentInstanceImpl<SeaBass>(new ClassAnnotatedItem(SeaBass.class), annotatedItem,
container);
assert trout.getName().equals("aTrout");
}
@@ -384,7 +387,7 @@
@Test
public void testNotNamed()
{
- ComponentInstance<Trout> trout = new ComponentInstanceImpl<Trout>(new
ClassAnnotatedItem(Trout.class), emptyAnnotatedItem, container);
+ ComponentInstance<SeaBass> trout = new
ComponentInstanceImpl<SeaBass>(new ClassAnnotatedItem(SeaBass.class),
emptyAnnotatedItem, container);
assert trout.getName() == null;
}
@@ -493,6 +496,8 @@
}
+ //*** COMPONENT CLASS CHECKS ****//
+
@Test
public void testAbstractClassIsNotAllowed()
{
Added:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/ConstructorMetaModelTest.java
===================================================================
---
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/ConstructorMetaModelTest.java
(rev 0)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/ConstructorMetaModelTest.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -0,0 +1,140 @@
+package org.jboss.webbeans.test;
+
+import javax.webbeans.Current;
+
+import org.jboss.webbeans.ConstructorMetaModel;
+import org.jboss.webbeans.test.annotations.Synchronous;
+import org.jboss.webbeans.test.components.Chicken;
+import org.jboss.webbeans.test.components.Donkey;
+import org.jboss.webbeans.test.components.Duck;
+import org.jboss.webbeans.test.components.Goat;
+import org.jboss.webbeans.test.components.Goose;
+import org.jboss.webbeans.test.components.Order;
+import org.jboss.webbeans.test.components.Sheep;
+import org.jboss.webbeans.test.components.Turkey;
+import org.junit.Test;
+
+public class ConstructorMetaModelTest
+{
+
+ @Test
+ public void testImplicitConstructor()
+ {
+ ConstructorMetaModel<Order> constructor = new
ConstructorMetaModel<Order>(Order.class);
+ assert constructor.getConstructor().getDeclaringClass().equals(Order.class);
+ assert constructor.getConstructor().getParameterTypes().length == 0;
+ assert constructor.getInjectedAttributes().size() == 0;
+ }
+
+ @Test
+ public void testSingleConstructor()
+ {
+ ConstructorMetaModel<Donkey> constructor = new
ConstructorMetaModel<Donkey>(Donkey.class);
+ assert constructor.getConstructor().getDeclaringClass().equals(Donkey.class);
+ assert constructor.getConstructor().getParameterTypes().length == 1;
+ assert constructor.getConstructor().getParameterTypes()[0].equals(String.class);
+ assert constructor.getInjectedAttributes().size() == 1;
+ assert constructor.getInjectedAttributes().get(0).getType().equals(String.class);
+ assert constructor.getInjectedAttributes().get(0).getBindingTypes().length == 1;
+ assert
constructor.getInjectedAttributes().get(0).getBindingTypes()[0].annotationType().equals(Current.class);
+ }
+
+ @Test
+ public void testInitializerAnnotatedConstructor()
+ {
+ ConstructorMetaModel<Sheep> constructor = new
ConstructorMetaModel<Sheep>(Sheep.class);
+ assert constructor.getConstructor().getDeclaringClass().equals(Sheep.class);
+ assert constructor.getConstructor().getParameterTypes().length == 2;
+ assert constructor.getConstructor().getParameterTypes()[0].equals(String.class);
+ assert constructor.getConstructor().getParameterTypes()[1].equals(Double.class);
+ assert constructor.getInjectedAttributes().size() == 2;
+ assert constructor.getInjectedAttributes().get(0).getType().equals(String.class);
+ assert constructor.getInjectedAttributes().get(1).getType().equals(Double.class);
+ assert constructor.getInjectedAttributes().get(0).getBindingTypes().length == 1;
+ assert
constructor.getInjectedAttributes().get(0).getBindingTypes()[0].annotationType().equals(Current.class);
+ assert constructor.getInjectedAttributes().get(1).getBindingTypes().length == 1;
+ assert
constructor.getInjectedAttributes().get(1).getBindingTypes()[0].annotationType().equals(Current.class);
+ }
+
+ @Test
+ public void testBindingTypeAnnotatedConstructor()
+ {
+ ConstructorMetaModel<Duck> constructor = new
ConstructorMetaModel<Duck>(Duck.class);
+ assert constructor.getConstructor().getDeclaringClass().equals(Duck.class);
+ assert constructor.getConstructor().getParameterTypes().length == 2;
+ assert constructor.getConstructor().getParameterTypes()[0].equals(String.class);
+ assert constructor.getConstructor().getParameterTypes()[1].equals(Integer.class);
+ assert constructor.getInjectedAttributes().size() == 2;
+ assert constructor.getInjectedAttributes().get(0).getType().equals(String.class);
+ assert constructor.getInjectedAttributes().get(1).getType().equals(Integer.class);
+ assert constructor.getInjectedAttributes().get(0).getBindingTypes().length == 1;
+ assert
constructor.getInjectedAttributes().get(0).getBindingTypes()[0].annotationType().equals(Current.class);
+ assert constructor.getInjectedAttributes().get(1).getBindingTypes().length == 1;
+ assert
constructor.getInjectedAttributes().get(1).getBindingTypes()[0].annotationType().equals(Synchronous.class);
+ }
+
+ @Test
+ public void testTooManyInitializerAnnotatedConstructor()
+ {
+ boolean exception = false;
+ try
+ {
+ new ConstructorMetaModel<Chicken>(Chicken.class);
+ }
+ catch (Exception e)
+ {
+ exception = true;
+ }
+ assert exception;
+
+ }
+
+ @Test
+ public void testTooManyConstructors()
+ {
+ boolean exception = false;
+ try
+ {
+ new ConstructorMetaModel<Turkey>(Turkey.class);
+ }
+ catch (Exception e)
+ {
+ exception = true;
+ }
+ assert exception;
+
+ }
+
+ @Test
+ public void testTooManyBindingTypeAnnotatedConstructor()
+ {
+ boolean exception = false;
+ try
+ {
+ new ConstructorMetaModel<Goat>(Goat.class);
+ }
+ catch (Exception e)
+ {
+ exception = true;
+ }
+ assert exception;
+
+ }
+
+ @Test
+ public void testBindingTypeAndInitializerAnnotatedConstructor()
+ {
+ boolean exception = false;
+ try
+ {
+ new ConstructorMetaModel<Goose>(Goose.class);
+ }
+ catch (Exception e)
+ {
+ exception = true;
+ }
+ assert exception;
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/ConstructorMetaModelTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/annotations/Asynchronous.java
===================================================================
---
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/annotations/Asynchronous.java 2008-07-01
17:28:51 UTC (rev 34)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/annotations/Asynchronous.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -1,6 +1,7 @@
package org.jboss.webbeans.test.annotations;
import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -10,7 +11,7 @@
import javax.webbeans.BindingType;
-@Target( { TYPE, METHOD })
+@Target( { TYPE, METHOD, PARAMETER })
@Retention(RUNTIME)
@Documented
@BindingType
Modified:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/annotations/Synchronous.java
===================================================================
---
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/annotations/Synchronous.java 2008-07-01
17:28:51 UTC (rev 34)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/annotations/Synchronous.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -1,6 +1,7 @@
package org.jboss.webbeans.test.annotations;
import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -10,7 +11,7 @@
import javax.webbeans.BindingType;
-@Target( { TYPE, METHOD })
+@Target( { TYPE, METHOD, PARAMETER })
@Retention(RUNTIME)
@Documented
@BindingType
Added:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Chicken.java
===================================================================
--- ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Chicken.java
(rev 0)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Chicken.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -0,0 +1,21 @@
+package org.jboss.webbeans.test.components;
+
+import javax.webbeans.Initializer;
+import javax.webbeans.Production;
+
+@Production
+public class Chicken
+{
+
+ @Initializer
+ public Chicken(String foo)
+ {
+ }
+
+ @Initializer
+ public Chicken(String foo, Double bar)
+ {
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Chicken.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Donkey.java
===================================================================
--- ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Donkey.java
(rev 0)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Donkey.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.test.components;
+
+import javax.webbeans.Production;
+
+@Production
+public class Donkey
+{
+
+ public Donkey(String foo)
+ {
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Donkey.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Duck.java
===================================================================
--- ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Duck.java
(rev 0)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Duck.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -0,0 +1,21 @@
+package org.jboss.webbeans.test.components;
+
+import javax.webbeans.Production;
+
+import org.jboss.webbeans.test.annotations.Synchronous;
+
+@Production
+public class Duck
+{
+
+ public Duck(String foo)
+ {
+ // TODO Auto-generated constructor stub
+ }
+
+ public Duck(String foo, @Synchronous Integer bar)
+ {
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Duck.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Goat.java
===================================================================
--- ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Goat.java
(rev 0)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Goat.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -0,0 +1,23 @@
+package org.jboss.webbeans.test.components;
+
+import javax.webbeans.Production;
+
+import org.jboss.webbeans.test.annotations.Asynchronous;
+import org.jboss.webbeans.test.annotations.Synchronous;
+
+@Production
+public class Goat
+{
+
+ public Goat(@Synchronous String foo)
+ {
+ // TODO Auto-generated constructor stub
+ }
+
+ public Goat(@Asynchronous String foo, String bar)
+ {
+ // TODO Auto-generated constructor stub
+ }
+
+
+}
Property changes on:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Goat.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Goose.java
===================================================================
--- ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Goose.java
(rev 0)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Goose.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -0,0 +1,25 @@
+package org.jboss.webbeans.test.components;
+
+import javax.webbeans.Initializer;
+import javax.webbeans.Production;
+
+import org.jboss.webbeans.test.annotations.Asynchronous;
+import org.jboss.webbeans.test.annotations.Synchronous;
+
+@Production
+public class Goose
+{
+
+ public Goose(@Synchronous String foo)
+ {
+ // TODO Auto-generated constructor stub
+ }
+
+ @Initializer
+ public Goose(String foo, String bar)
+ {
+ // TODO Auto-generated constructor stub
+ }
+
+
+}
Property changes on:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Goose.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/SeaBass.java (from
rev 21,
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Trout.java)
===================================================================
--- ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/SeaBass.java
(rev 0)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/SeaBass.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.components;
+
+import javax.webbeans.Production;
+import javax.webbeans.RequestScoped;
+
+@Production
+@RequestScoped
+public class SeaBass implements Animal
+{
+
+}
Property changes on:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/SeaBass.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Sheep.java
===================================================================
--- ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Sheep.java
(rev 0)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Sheep.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -0,0 +1,22 @@
+package org.jboss.webbeans.test.components;
+
+import javax.webbeans.Initializer;
+import javax.webbeans.Production;
+
+@Production
+public class Sheep
+{
+
+
+ public Sheep(String foo)
+ {
+
+ }
+
+ @Initializer
+ public Sheep(String foo, Double bar)
+ {
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Sheep.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Trout.java
===================================================================
---
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Trout.java 2008-07-01
17:28:51 UTC (rev 34)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Trout.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -1,11 +0,0 @@
-package org.jboss.webbeans.test.components;
-
-import javax.webbeans.Production;
-import javax.webbeans.RequestScoped;
-
-@Production
-@RequestScoped
-public class Trout implements Animal
-{
-
-}
Added:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Turkey.java
===================================================================
--- ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Turkey.java
(rev 0)
+++
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Turkey.java 2008-07-01
17:29:49 UTC (rev 35)
@@ -0,0 +1,19 @@
+package org.jboss.webbeans.test.components;
+
+import javax.webbeans.Production;
+
+@Production
+public class Turkey
+{
+
+ public Turkey(String foo)
+ {
+
+ }
+
+ public Turkey(String foo, Integer bar)
+ {
+
+ }
+
+}
Property changes on:
ri/trunk/webbeans-impl/src/test/java/org/jboss/webbeans/test/components/Turkey.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain