package es.java.otro.service;
import java.util.List;
import org.apache.log4j.Logger;
import org.osgi.service.component.ComponentContext;
import es.java.otro.dao.FeedDao;
import es.java.otro.model.Feed;
import es.java.otro.model.Root;
public class FeedServiceImpl implements FeedService {
private FeedDao feedDao;
public void setFeedDao(FeedDao feedDao) {
this.feedDao = feedDao;
}
private static Logger log = Logger.getLogger(FeedServiceImpl.class);
public FeedServiceImpl() {
log.debug("init FeedServiceImpl");
}
@Override
public void test() {
feedDao.addFeed(new Feed());
}
@Override
public void persistRoot(Root root) {
//feedDao.persistRoot(root);
}
@Override
public void addFeed(Feed feed) {
feedDao.addFeed(feed);
}
@Override
public List<Feed> getFeeds() {
return feedDao.getFeeds();
}
protected void deactivate(ComponentContext context) {
System.out.println("deactivated");
}
}