-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'fregaham/master'
- Loading branch information
Showing
8 changed files
with
96 additions
and
23 deletions.
There are no files selected for viewing
5 changes: 4 additions & 1 deletion
5
lesson03-seam3/src/main/java/cz/muni/fi/pv243/lesson03/action/CakeEditAction.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
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
31 changes: 31 additions & 0 deletions
31
lesson03-seam3/src/main/java/cz/muni/fi/pv243/lesson03/action/CurrentBakeryUnwrapper.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 cz.muni.fi.pv243.lesson03.action; | ||
|
||
import java.io.Serializable; | ||
|
||
import javax.enterprise.context.ConversationScoped; | ||
import javax.inject.Named; | ||
|
||
import org.jboss.solder.unwraps.Unwraps; | ||
|
||
import cz.muni.fi.pv243.lesson03.model.Bakery; | ||
|
||
@ConversationScoped | ||
public class CurrentBakeryUnwrapper implements Serializable | ||
{ | ||
private Bakery bakery; | ||
|
||
public void setCurrentBakery(Bakery bakery) { | ||
this.bakery = bakery; | ||
} | ||
|
||
public Bakery getCurrentBakery() { | ||
return bakery; | ||
} | ||
|
||
@Unwraps | ||
@Current | ||
@Named("bakery") | ||
public Bakery produceCurrentBakery() { | ||
return bakery; | ||
} | ||
} |
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
31 changes: 31 additions & 0 deletions
31
lesson03-seam3/src/main/java/cz/muni/fi/pv243/lesson03/action/CurrentCakeUnwrapper.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 cz.muni.fi.pv243.lesson03.action; | ||
|
||
import java.io.Serializable; | ||
|
||
import javax.enterprise.context.ConversationScoped; | ||
import javax.inject.Named; | ||
|
||
import org.jboss.solder.unwraps.Unwraps; | ||
|
||
import cz.muni.fi.pv243.lesson03.model.Cake; | ||
|
||
@ConversationScoped | ||
public class CurrentCakeUnwrapper implements Serializable | ||
{ | ||
private Cake cake; | ||
|
||
public void setCurrentCake(Cake cake) { | ||
this.cake = cake; | ||
} | ||
|
||
public Cake getCurrentCake() { | ||
return cake; | ||
} | ||
|
||
@Unwraps | ||
@Current | ||
@Named("cake") | ||
public Cake produceCurrentCake() { | ||
return cake; | ||
} | ||
} |
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