| java.lang.Object javax.microedition.xlet.ixc.IxcRegistry
All known Subclasses: com.sun.jumpimpl.ixc.executive.JUMPExecIxcRegistryWrapper, com.sun.jumpimpl.ixc.JUMPIxcRegistryImpl, com.sun.xlet.ixc.IxcRegistryImpl, com.sun.jumpimpl.ixc.executive.JUMPExecIxcRegistry,
IxcRegistry | abstract public class IxcRegistry implements Registry(Code) | | IXCRegistry is the bootstrap mechanism for obtaining
references to remote objects residing in other Xlets executing on
the same machine, but in separate classloaders.
Instances of IXCRegistry are never accessible via
java.rmi.Naming or
java.rmi.registry.LocateRegistry if RMI functionality
is implemented.
See Also: java.rmi.Registry |
Constructor Summary | |
protected | IxcRegistry() Creates the IxcRegistry instance. |
Method Summary | |
abstract public void | bind(String name, Remote obj) Binds the specified name to a remote object. | public static IxcRegistry | getRegistry(XletContext context) Returns the Inter-Xlet Communication registry. | abstract public String[] | list() Returns an array of the names bound in the registry. | abstract public Remote | lookup(String name) Returns a reference, a stub, for the remote object associated
with the specified name . | abstract public void | rebind(String name, Remote obj) Rebinds the specified name to a new remote object. | abstract public void | unbind(String name) Destroys the binding for the specified name that is associated
with a remote object. | abstract public void | unbindAll() Removes the bindings for all remote objects currently exported by
the calling Xlet. |
getRegistryImplMethod | static Method getRegistryImplMethod(Code) | | |
isPlatformChecked | static boolean isPlatformChecked(Code) | | |
IxcRegistry | protected IxcRegistry()(Code) | | Creates the IxcRegistry instance.
|
bind | abstract public void bind(String name, Remote obj) throws StubException, AlreadyBoundException(Code) | | Binds the specified name to a remote object.
Parameters: name - a URL-formatted name for the remote object Parameters: obj - a reference for the remote object (usually a stub) exception: AlreadyBoundException - if name is already bound exception: MalformedURLException - if the name is not an appropriatelyformatted URL exception: RemoteException - if registry could not be contacted |
list | abstract public String[] list()(Code) | | Returns an array of the names bound in the registry. The names are
URL-formatted strings. The array contains a snapshot of the names
present in the registry at the time of the call.
an array of names (in the appropriate URL format) boundin the registry exception: RemoteException - if registry could not be contacted exception: AccessException - if this operation is not permitted (iforiginating from a non-local host, for example) |
lookup | abstract public Remote lookup(String name) throws StubException, NotBoundException(Code) | | Returns a reference, a stub, for the remote object associated
with the specified name .
Parameters: name - a URL-formatted name for the remote object a reference for a remote object exception: NotBoundException - if name is not currently bound exception: StubException - If a stub could not be generated |
rebind | abstract public void rebind(String name, Remote obj) throws StubException, AccessException(Code) | | Rebinds the specified name to a new remote object. Any existing
binding for the name is replaced.
Parameters: name - a URL-formatted name associated with the remote object Parameters: obj - new remote object to associate with the name exception: MalformedURLException - if the name is not an appropriatelyformatted URL exception: RemoteException - if registry could not be contacted exception: AccessException - if this operation is not permitted (iforiginating from a non-local host, for example) |
unbind | abstract public void unbind(String name) throws NotBoundException, AccessException(Code) | | Destroys the binding for the specified name that is associated
with a remote object.
Parameters: name - a URL-formatted name associated with a remote object exception: NotBoundException - if name is not currently bound |
unbindAll | abstract public void unbindAll()(Code) | | Removes the bindings for all remote objects currently exported by
the calling Xlet.
|
|
|