FileDocCategorySizeDatePackage
ServiceFinderListener.javaAPI DocExample2141Thu Mar 16 11:52:16 GMT 2000None

ServiceFinderListener

public class ServiceFinderListener extends UnicastRemoteObject implements RemoteEventListener

Fields Summary
private ServiceFinder
parent
Constructors Summary
public ServiceFinderListener(ServiceFinder parent)

        this.parent = parent;
    
Methods Summary
public voidnotify(RemoteEvent event)

        if (!(event instanceof ServiceEvent))
	    throw new UnknownEventException("ServiceFinderListener");

        ServiceEvent sevent = (ServiceEvent) event;
        ServiceItem item = sevent.getServiceItem();
        if (sevent.getTransition() == ServiceRegistrar.TRANSITION_NOMATCH_MATCH) {
            parent.addServiceItem(item);
        }