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@277 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Gavin King
authored and
gavin.king@gmail.com
committed
Nov 7, 2008
1 parent
2743084
commit 3a5ff29
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/Farm.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,24 @@ | ||
package org.jboss.webbeans.test.beans; | ||
|
||
import java.util.Date; | ||
|
||
import javax.annotation.PostConstruct; | ||
import javax.webbeans.Current; | ||
|
||
public class Farm | ||
{ | ||
|
||
public Date founded; | ||
public int initialStaff; | ||
|
||
@Current | ||
FarmOffice farmOffice; | ||
|
||
@PostConstruct | ||
private void postConstruct() | ||
{ | ||
founded = new Date(); | ||
initialStaff = farmOffice.noOfStaff; | ||
} | ||
|
||
} |
4 changes: 1 addition & 3 deletions
4
webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/FarmOffice.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,11 +1,9 @@ | ||
package org.jboss.webbeans.test.beans; | ||
|
||
import javax.webbeans.Current; | ||
|
||
public class FarmOffice | ||
{ | ||
|
||
@Current | ||
public int noOfStaff; | ||
public int noOfStaff = 20; | ||
|
||
} |