// Path: 6.ExamplesToUnderstandMore/src/main/java/com/in28minutes/spring/example1/database/Database.java
// public class Database {
// 	public static List<String> retrieveTodos(String user) {
// 		throw new RuntimeException("Database Down");
// 		// return Arrays.asList("Learn Spring","Learn Struts","Learn to Dance");
// 	}
// }
// 
// Path: 6.ExamplesToUnderstandMore/src/main/java/com/in28minutes/spring/example1/dataservice/api/TodoDataService.java
// public interface TodoDataService {
// 	List<String> retrieveTodos(String user);
// }


import java.util.List;
import org.springframework.stereotype.Component;
import com.in28minutes.spring.example1.database.Database;
import com.in28minutes.spring.example1.dataservice.api.TodoDataService;
package com.in28minutes.spring.example1.dataservice.impl;




@Component
public class TodoDataServiceRealImpl implements TodoDataService {
	public List<String> retrieveTodos(String user) {
// Path: 6.ExamplesToUnderstandMore/src/main/java/com/in28minutes/spring/example1/database/Database.java
// public class Database {
// 	public static List<String> retrieveTodos(String user) {
// 		throw new RuntimeException("Database Down");
// 		// return Arrays.asList("Learn Spring","Learn Struts","Learn to Dance");
// 	}
// }
// 
// Path: 6.ExamplesToUnderstandMore/src/main/java/com/in28minutes/spring/example1/dataservice/api/TodoDataService.java
// public interface TodoDataService {
// 	List<String> retrieveTodos(String user);
// }


// Path: 6.ExamplesToUnderstandMore/src/main/java/com/in28minutes/spring/example1/dataservice/impl/TodoDataServiceRealImpl.java
import java.util.List;
import org.springframework.stereotype.Component;
import com.in28minutes.spring.example1.database.Database;
import com.in28minutes.spring.example1.dataservice.api.TodoDataService;

package com.in28minutes.spring.example1.dataservice.impl;




@Component
public class TodoDataServiceRealImpl implements TodoDataService {
	public List<String> retrieveTodos(String user) {
		return Database.retrieveTodos(user);