4 exception Invalid_Stock_Symbol
{};
5 // Used to report an invalid stock name
7 // Forward declare the Stock interface
10 interface StockFactory
13 // A factory class for the stock interfaces
16 // Return the Stock interfaces based on their names
18 Stock get_stock
(in string stock_symbol
)
19 raises
(Invalid_Stock_Symbol
);
21 oneway
void shutdown
();
28 // A simple interface to query the name and price of stock
31 // Return the price and name of a single stock
34 readonly attribute
string symbol
;
35 // Get the stock symbol.
37 readonly attribute
string full_name
;