Package es.java.otro.service

Source Code of es.java.otro.service.FeedServiceImpl

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");
  }
}
TOP

Related Classes of es.java.otro.service.FeedServiceImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.