Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes and tests for type safe resolution
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@137 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Showing
15 changed files
with
240 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
webbeans-ri/src/test/java/org/jboss/webbeans/test/annotations/Chunky.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.jboss.webbeans.test.annotations; | ||
|
||
import static java.lang.annotation.ElementType.METHOD; | ||
import static java.lang.annotation.ElementType.FIELD; | ||
import static java.lang.annotation.ElementType.PARAMETER; | ||
import static java.lang.annotation.ElementType.TYPE; | ||
import static java.lang.annotation.RetentionPolicy.RUNTIME; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
import javax.webbeans.BindingType; | ||
|
||
@Target( { TYPE, METHOD, PARAMETER, FIELD }) | ||
@Retention(RUNTIME) | ||
@Documented | ||
@BindingType | ||
public @interface Chunky | ||
{ | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
webbeans-ri/src/test/java/org/jboss/webbeans/test/annotations/Whitefish.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.jboss.webbeans.test.annotations; | ||
|
||
import static java.lang.annotation.ElementType.METHOD; | ||
import static java.lang.annotation.ElementType.FIELD; | ||
import static java.lang.annotation.ElementType.PARAMETER; | ||
import static java.lang.annotation.ElementType.TYPE; | ||
import static java.lang.annotation.RetentionPolicy.RUNTIME; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
import javax.webbeans.BindingType; | ||
|
||
@Target( { TYPE, METHOD, PARAMETER, FIELD }) | ||
@Retention(RUNTIME) | ||
@Documented | ||
@BindingType | ||
public @interface Whitefish | ||
{ | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
webbeans-ri/src/test/java/org/jboss/webbeans/test/components/Cod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.jboss.webbeans.test.components; | ||
|
||
import javax.webbeans.Production; | ||
|
||
import org.jboss.webbeans.test.annotations.Chunky; | ||
import org.jboss.webbeans.test.annotations.Whitefish; | ||
|
||
@Production | ||
@Whitefish | ||
@Chunky | ||
public class Cod implements ScottishFish | ||
{ | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
webbeans-ri/src/test/java/org/jboss/webbeans/test/components/Farmer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.jboss.webbeans.test.components; | ||
|
||
import javax.webbeans.Production; | ||
|
||
@Production | ||
public class Farmer<T> | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
webbeans-ri/src/test/java/org/jboss/webbeans/test/components/Salmon.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.jboss.webbeans.test.components; | ||
|
||
import javax.webbeans.Production; | ||
|
||
import org.jboss.webbeans.test.annotations.Whitefish; | ||
|
||
@Production | ||
public class Salmon implements ScottishFish | ||
{ | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
webbeans-ri/src/test/java/org/jboss/webbeans/test/components/ScottishFish.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.jboss.webbeans.test.components; | ||
|
||
public interface ScottishFish extends Animal | ||
{ | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
webbeans-ri/src/test/java/org/jboss/webbeans/test/components/Sole.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.jboss.webbeans.test.components; | ||
|
||
import javax.webbeans.Production; | ||
|
||
import org.jboss.webbeans.test.annotations.Whitefish; | ||
|
||
@Production | ||
@Whitefish | ||
public class Sole implements ScottishFish | ||
{ | ||
|
||
} |