|
@@ -1,10 +1,11 @@
|
|
package org.starter.learning.factory;
|
|
package org.starter.learning.factory;
|
|
|
|
|
|
|
|
+import org.starter.learning.dao.impl.BookDaoImpl;
|
|
import org.starter.learning.service.BookService;
|
|
import org.starter.learning.service.BookService;
|
|
import org.starter.learning.service.impl.BookServiceImpl;
|
|
import org.starter.learning.service.impl.BookServiceImpl;
|
|
|
|
|
|
public class BookServiceFactory {
|
|
public class BookServiceFactory {
|
|
public BookService getBookService() {
|
|
public BookService getBookService() {
|
|
- return new BookServiceImpl();
|
|
|
|
|
|
+ return new BookServiceImpl(new BookDaoImpl());
|
|
}
|
|
}
|
|
}
|
|
}
|