| java.lang.Object javax.microedition.xlet.ixc.IxcRegistry com.sun.xlet.ixc.IxcRegistryImpl
IxcRegistryImpl | public class IxcRegistryImpl extends IxcRegistry (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 |
IxcRegistryImpl | protected IxcRegistryImpl(XletContext ctxt)(Code) | | Creates a IxcRegistry instance.
|
bind | 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 exception: AccessException - if this operation is not permitted (iforiginating from a non-local host, for example) |
getImportRegistry | ImportRegistry getImportRegistry(XletContext targetXlet)(Code) | | Returns an ImportRegistry of the target xlet which the xlet
belonging to this IxcRegistry is trying to import an object
from.
|
list | 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 | 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: RemoteException - if registry could not be contacted exception: AccessException - if this operation is not permitted (iforiginating from a non-local host, for example) |
rebind | 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 | 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 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) |
unbindAll | public void unbindAll()(Code) | | Removes the bindings for all remote objects currently exported by
the calling Xlet.
|
|
|