Skip to content
Snippets Groups Projects
Commit 07793041 authored by Peter Hertkorn's avatar Peter Hertkorn
Browse files

Setter injection instead of interface injection

parent f6da0d96
No related branches found
No related tags found
Loading
......@@ -3,8 +3,12 @@ package pizzeria;
import com.google.inject.Inject;
public class PizzaFranchise {
protected PizzaStore store;
@Inject
private PizzaStore store;
public void setStore(PizzaStore store) {
this.store = store;
}
public Pizza orderPizza(String type) {
return store.orderPizza(type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment