
114
ComPonent-oriented develoPment and assemblY
public interface ITableBiz {
public int getNoOfTables();
public List<Table> getOccupiedTables();
public List<Table> getEmptyTables();
public void occupyTable(Table table, int noOfGuests,
String waiter)
throws Exception;
public void unOccupyTable(Table table) throws Exception;
public void canPayBill(Table table) throws Exception;
public void reconfigureTables(int newNoOfTables) throws
Exception;
public void canTableTakeOrders(Table table) throws
Exception;
}
Now we need to declare the ITableBiz as the service being offered by
theTableBiz implementation class. In order to make this decla ...