All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.example.ioc.BarServiceImpl Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
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");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy