Gregg Wonderly wrote:

> If on the other hand, I used something like my Jini desktop client that is
> ServiceUI aware, I'd lookup the service using attributes instead such as.
> 
> new Entry[] {
> new FoodService( FoodType.PIZZA ), // Looking for pizza services
> new UIDescriptor( // Want ones that provide a UI
> MainUI.ROLE, // Want the main ui, not admin
> JComponentFactory.TOOLKIT, // Swing compatible
> null, // no specific attributes
> null // no specific factory
> )
> }

from pizza import pizza
from pizza import BASE
from units import INCHES
class CustomerPizza(pizza):
        def __init__(toppings=[], base=BASE.THINCRUST,
            diameter=INCHES.TWELVE), :
            self.toppings =toppings
            self.base = base
             self.diameter=diameter


how do I integrate with your foodservice? Actually, never mind. We can 
find a better question - why do Dominos let me pay for a pizza via HTTP 
but not via RMI?

cheers
Bill

Reply via email to