Package ejava.examples.txagent.blimpl
Class AgentImpl
- java.lang.Object
-
- ejava.examples.txagent.blimpl.AgentImpl
-
- All Implemented Interfaces:
BookingAgent
public class AgentImpl extends Object implements BookingAgent
-
-
Field Summary
Fields Modifier and Type Field Description private BookingDAO
bookingDAO
private static org.slf4j.Logger
log
private HotelReservationist
reservationist
-
Constructor Summary
Constructors Constructor Description AgentImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanupBooking(String confirmation)
Booking
getBookingByConfirmation(String confirmation)
List<Booking>
getBookings(int index, int count)
protected void
populateBooking(Booking booking)
Get reservations for stored IDsvoid
setBookingDAO(BookingDAO bookingDAO)
void
setReservationist(HotelReservationist reservationist)
-
-
-
Field Detail
-
log
private static org.slf4j.Logger log
-
bookingDAO
private BookingDAO bookingDAO
-
reservationist
private HotelReservationist reservationist
-
-
Method Detail
-
populateBooking
protected void populateBooking(Booking booking) throws AgentReservationException
Get reservations for stored IDs- Throws:
AgentReservationException
-
getBookingByConfirmation
public Booking getBookingByConfirmation(String confirmation) throws AgentReservationException
- Specified by:
getBookingByConfirmation
in interfaceBookingAgent
- Throws:
AgentReservationException
-
getBookings
public List<Booking> getBookings(int index, int count) throws AgentReservationException
- Specified by:
getBookings
in interfaceBookingAgent
- Throws:
AgentReservationException
-
cleanupBooking
public void cleanupBooking(String confirmation) throws AgentReservationException
- Specified by:
cleanupBooking
in interfaceBookingAgent
- Throws:
AgentReservationException
-
setBookingDAO
public void setBookingDAO(BookingDAO bookingDAO)
-
setReservationist
public void setReservationist(HotelReservationist reservationist)
-
-