Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
339 additions
and
2 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
17 changes: 17 additions & 0 deletions
17
...st/java/org/jboss/weld/tests/unit/deployment/structure/nonTransitiveResolution/Basic.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,17 @@ | ||
package org.jboss.weld.tests.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
import static java.lang.annotation.ElementType.METHOD; | ||
import static java.lang.annotation.ElementType.TYPE; | ||
import static java.lang.annotation.RetentionPolicy.RUNTIME; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
import javax.interceptor.InterceptorBinding; | ||
|
||
@InterceptorBinding | ||
@Target({METHOD, TYPE}) | ||
@Retention(RUNTIME) | ||
public @interface Basic { | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
.../jboss/weld/tests/unit/deployment/structure/nonTransitiveResolution/BasicInterceptor.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,31 @@ | ||
package org.jboss.weld.tests.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
import javax.interceptor.AroundInvoke; | ||
import javax.interceptor.Interceptor; | ||
import javax.interceptor.InvocationContext; | ||
|
||
@Interceptor | ||
@Basic | ||
public class BasicInterceptor | ||
{ | ||
|
||
private static Object target; | ||
|
||
public static Object getTarget() | ||
{ | ||
return target; | ||
} | ||
|
||
public static void reset() | ||
{ | ||
target = null; | ||
} | ||
|
||
@AroundInvoke | ||
public Object classInterceptor(InvocationContext ctx) throws Exception | ||
{ | ||
target = ctx.getTarget(); | ||
return ctx.proceed(); | ||
} | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
...test/java/org/jboss/weld/tests/unit/deployment/structure/nonTransitiveResolution/Baz.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,17 @@ | ||
package org.jboss.weld.tests.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
import static java.lang.annotation.ElementType.METHOD; | ||
import static java.lang.annotation.ElementType.TYPE; | ||
import static java.lang.annotation.RetentionPolicy.RUNTIME; | ||
|
||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
import javax.inject.Qualifier; | ||
|
||
@Qualifier | ||
@Target({METHOD, TYPE}) | ||
@Retention(RUNTIME) | ||
public @interface Baz { | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
...est/java/org/jboss/weld/tests/unit/deployment/structure/nonTransitiveResolution/Blah.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,10 @@ | ||
package org.jboss.weld.tests.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
public interface Blah | ||
{ | ||
|
||
public void ping(int i); | ||
|
||
public int getI(); | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...org/jboss/weld/tests/unit/deployment/structure/nonTransitiveResolution/BlahDecorator.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,20 @@ | ||
package org.jboss.weld.tests.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
import javax.decorator.Decorator; | ||
import javax.decorator.Delegate; | ||
import javax.enterprise.inject.Any; | ||
import javax.inject.Inject; | ||
|
||
@Decorator | ||
public abstract class BlahDecorator implements Blah | ||
{ | ||
|
||
@Inject @Delegate @Any | ||
private Blah blah; | ||
|
||
public void ping(int i) | ||
{ | ||
blah.ping(i + 1); | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...java/org/jboss/weld/tests/unit/deployment/structure/nonTransitiveResolution/BlahImpl.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,18 @@ | ||
package org.jboss.weld.tests.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
public class BlahImpl implements Blah | ||
{ | ||
|
||
private int i; | ||
|
||
public int getI() | ||
{ | ||
return i; | ||
} | ||
|
||
public void ping(int i) | ||
{ | ||
this.i = i; | ||
} | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
...ava/org/jboss/weld/tests/unit/deployment/structure/nonTransitiveResolution/BlahImpl2.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,19 @@ | ||
package org.jboss.weld.tests.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
@Baz | ||
public class BlahImpl2 implements Blah | ||
{ | ||
|
||
private int i; | ||
|
||
public int getI() | ||
{ | ||
return i; | ||
} | ||
|
||
public void ping(int i) | ||
{ | ||
this.i = i; | ||
} | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
.../java/org/jboss/weld/tests/unit/deployment/structure/nonTransitiveResolution/Complex.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,19 @@ | ||
package org.jboss.weld.tests.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
@Basic | ||
public class Complex | ||
{ | ||
|
||
private String id; | ||
|
||
public void ping(String id) | ||
{ | ||
this.id = id; | ||
} | ||
|
||
public String getId() | ||
{ | ||
return id; | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...t/java/org/jboss/weld/tests/unit/deployment/structure/nonTransitiveResolution/Simple.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,18 @@ | ||
package org.jboss.weld.tests.unit.deployment.structure.nonTransitiveResolution; | ||
|
||
public class Simple | ||
{ | ||
|
||
private String id; | ||
|
||
public void ping(String id) | ||
{ | ||
this.id = id; | ||
} | ||
|
||
public String getId() | ||
{ | ||
return id; | ||
} | ||
|
||
} |
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