001 /*****************************************************************************
002 * Copyright (C) NanoContainer Organization. All rights reserved. *
003 * ------------------------------------------------------------------------- *
004 * The software in this package is published under the terms of the BSD *
005 * style license a copy of which has been included with this distribution in *
006 * the LICENSE.txt file. *
007 * *
008 *****************************************************************************/
009 package org.nanocontainer.nanowar.sample.service;
010
011 import java.util.Collection;
012
013 import org.nanocontainer.nanowar.sample.model.Cheese;
014
015 /**
016 * This is a service which is independent of any MVC framework.
017 *
018 * @author Mauro Talevi
019 */
020 public interface CheeseService {
021
022 public Collection getCheeses();
023
024 public Cheese find(Cheese example);
025
026 public void save(Cheese cheese);
027
028 public void remove(Cheese cheese);
029
030 }