public class InstantiatorAccessExporter extends Object implements net.jini.export.Exporter
ActivationInstantiator instance so that
it only accepts calls from the local host.| Constructor and Description |
|---|
InstantiatorAccessExporter()
Creates an exporter with an underlying
JrmpExporter that
exports on an anonymous port. |
InstantiatorAccessExporter(net.jini.export.Exporter exporter)
Creates an exporter with the specified underlying exporter.
|
| Modifier and Type | Method and Description |
|---|---|
Remote |
export(Remote impl)
Wraps the specified remote object in an
ActivationInstantiator implementation that only accepts
calls from the local host before delegating to the specified remote
object, exports the wrapper with the underlying exporter, and returns
the resulting proxy. |
boolean |
unexport(boolean force) |
public InstantiatorAccessExporter()
JrmpExporter that
exports on an anonymous port.public InstantiatorAccessExporter(net.jini.export.Exporter exporter)
exporter - the underlying exporterpublic Remote export(Remote impl) throws ExportException
ActivationInstantiator implementation that only accepts
calls from the local host before delegating to the specified remote
object, exports the wrapper with the underlying exporter, and returns
the resulting proxy. The wrapper is strongly referenced by this
exporter. For the newInstance method, the wrapper throws an
AccessControlException if the client is not calling from
the local host.export in interface net.jini.export.ExporterIllegalArgumentException - if impl does not
implement ActivationInstantiatorNullPointerExceptionIllegalStateExceptionExportExceptionpublic boolean unexport(boolean force)
unexport in interface net.jini.export.ExporterIllegalStateExceptionCopyright © 2016–2018. All rights reserved.