com.sun.jini.example.browser
Class ServiceEditor.NotifyReceiver

java.lang.Object
  extended by com.sun.jini.example.browser.ServiceEditor.NotifyReceiver
All Implemented Interfaces:
Remote, EventListener, RemoteEventListener, ServerProxyTrust
Enclosing class:
ServiceEditor

private class ServiceEditor.NotifyReceiver
extends Object
implements RemoteEventListener, ServerProxyTrust


Field Summary
private  Exporter exporter
           
(package private)  RemoteEventListener proxy
           
 
Constructor Summary
ServiceEditor.NotifyReceiver()
           
 
Method Summary
 TrustVerifier getProxyVerifier()
          Returns a TrustVerifier that can be used to verify that a proxy can be trusted as a proxy for the service; that is, the isTrustedObject method of the returned verifier can be called with a candidate proxy.
 void notify(RemoteEvent ev)
          Notify the listener about an event.
(package private)  void unexport()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exporter

private final Exporter exporter

proxy

final RemoteEventListener proxy
Constructor Detail

ServiceEditor.NotifyReceiver

public ServiceEditor.NotifyReceiver()
                             throws ConfigurationException,
                                    ExportException
Throws:
ConfigurationException
ExportException
Method Detail

notify

public void notify(RemoteEvent ev)
Description copied from interface: RemoteEventListener
Notify the listener about an event.

The call to notify is synchronous to allow the party making the call to know if the call succeeded. However, it is not part of the semantics of the call that the notification return can be delayed while the recipient of the call reacts to the occurrence of the event. Simply put, the best strategy on the part of the recipient is to note the occurrence in some way and then return from the notify method as quickly as possible.

UnknownEventException is thrown when the recipient does not recognize the combination of the event identifier and the event source as something in which it is interested. Throwing this exception has the effect of asking the sender to not send further notifications of this kind of event from this source in the future.

Specified by:
notify in interface RemoteEventListener
Parameters:
ev - the remote event that occurred

getProxyVerifier

public TrustVerifier getProxyVerifier()
Description copied from interface: ServerProxyTrust
Returns a TrustVerifier that can be used to verify that a proxy can be trusted as a proxy for the service; that is, the isTrustedObject method of the returned verifier can be called with a candidate proxy. The verifier should be able to verify all proxies for the service, including proxies for resources (such as leases and registrations).

Specified by:
getProxyVerifier in interface ServerProxyTrust
Returns:
a TrustVerifier that can be used to verify that a proxy can be trusted as a proxy for the service

unexport

void unexport()


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.