Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@2430 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Victor Yarmolovich
committed
Apr 16, 2009
1 parent
d2ed0e1
commit 29d8ce7
Showing
8 changed files
with
112 additions
and
100 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
23 changes: 16 additions & 7 deletions
23
tests/src/test/java/org/jboss/webbeans/test/unit/xml/beans/Order.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 |
---|---|---|
@@ -1,25 +1,34 @@ | ||
package org.jboss.webbeans.test.unit.xml.beans; | ||
|
||
import javax.context.Dependent; | ||
import javax.inject.Current; | ||
import javax.inject.Initializer; | ||
import javax.inject.manager.Manager; | ||
|
||
import org.jboss.webbeans.test.unit.xml.beans.annotationtype.TestBindingType; | ||
import org.jboss.webbeans.test.unit.xml.beans.annotationtype.TestDeploymentType; | ||
import org.jboss.webbeans.test.unit.xml.beans.annotationtype.TestInterceptorBindingType; | ||
import org.jboss.webbeans.test.unit.xml.beans.annotationtype.TestStereotype; | ||
|
||
@TestBindingType | ||
@TestInterceptorBindingType | ||
@TestStereotype | ||
@TestDeploymentType | ||
public class Order | ||
{ | ||
public int val; | ||
|
||
public String[] strArray; | ||
private boolean active; | ||
|
||
public Order(int val) | ||
@Initializer | ||
public Order(@Current Manager manager) | ||
{ | ||
this.val = val; | ||
if (manager.getContext(Dependent.class).isActive()) | ||
{ | ||
active = true; | ||
} | ||
} | ||
|
||
public int getVal() | ||
public boolean isActive() | ||
{ | ||
return val; | ||
return active; | ||
} | ||
} |
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