com.firefly.example.ioc.BarServiceImpl Maven / Gradle / Ivy
package com.firefly.example.ioc;
import java.util.List;
import java.util.Map;
/**
* @author Pengtao Qiu
*/
public class BarServiceImpl implements BarService {
private FooService fooService;
private List foods;
private Map foodPrices;
private String barName;
@Override
public List getFoods() {
return foods;
}
public void setFoods(List foods) {
this.foods = foods;
}
@Override
public Map getFoodPrices() {
return foodPrices;
}
public void setFoodPrices(Map foodPrices) {
this.foodPrices = foodPrices;
}
public void setBarName(String barName) {
this.barName = barName;
}
@Override
public String getBarName() {
return barName;
}
@Override
public FooService getFooService() {
return fooService;
}
public void setFooService(FooService fooService) {
this.fooService = fooService;
}
public void init() {
System.out.println("init BarService");
}
public void destroy() {
System.out.println("destroy BarService");
}
}