forked from wildfly/wildfly
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
1c0d691
commit 6b64b6c
Showing
5 changed files
with
108 additions
and
53 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
14 changes: 14 additions & 0 deletions
14
...lust/src/test/java/org/jboss/as/test/clustering/unmanaged/ejb3/stateful/bean/CDIBean.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.as.test.clustering.unmanaged.ejb3.stateful.bean; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @author Stuart Douglas | ||
*/ | ||
public class CDIBean implements Serializable, Counter { | ||
|
||
public int getCount() { | ||
return 10000000; | ||
} | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
...lust/src/test/java/org/jboss/as/test/clustering/unmanaged/ejb3/stateful/bean/Counter.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,8 @@ | ||
package org.jboss.as.test.clustering.unmanaged.ejb3.stateful.bean; | ||
|
||
/** | ||
* @author Stuart Douglas | ||
*/ | ||
public interface Counter { | ||
int getCount(); | ||
} |
24 changes: 24 additions & 0 deletions
24
...test/java/org/jboss/as/test/clustering/unmanaged/ejb3/stateful/bean/CounterDecorator.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.as.test.clustering.unmanaged.ejb3.stateful.bean; | ||
|
||
import java.io.Serializable; | ||
|
||
import javax.decorator.Decorator; | ||
import javax.decorator.Delegate; | ||
import javax.inject.Inject; | ||
|
||
/** | ||
* @author Stuart Douglas | ||
*/ | ||
@Decorator | ||
public class CounterDecorator implements Serializable, Counter { | ||
|
||
@Inject | ||
@Delegate | ||
private Counter counter; | ||
|
||
|
||
@Override | ||
public int getCount() { | ||
return counter.getCount() + 10000000; | ||
} | ||
} |
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