|Constructor and Description|
Creates an exporter with an underlying
Creates an exporter with the specified underlying exporter.
|Modifier and Type||Method and Description|
Wraps the specified remote object in an
Unexports the remote object that was exported by this
JrmpExporterthat exports on an anonymous port.
public InstantiatorAccessExporter(Exporter exporter)
exporter- the underlying exporter
public Remote export(Remote impl) throws ExportException
ActivationInstantiatorimplementation 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
newInstancemethod, the wrapper throws an
AccessControlExceptionif the client is not calling from the local host.
impl- a remote object to export
impldoes not implement
IllegalStateException- if an object has already been exported with this
ExportException- if a problem occurs exporting the object
public boolean unexport(boolean force)
Exportersuch that it will no longer receive remote method invocations that were made possible as a result of exporting it with this
Exporter. The unexport operation may not occur if the
false. This method must only be invoked after the
exportmethod has been invoked on this
Exporterinstance to export a remote object successfully.
This method returns
true if upon return, the remote
object is no longer exported with this
false if the remote object remains exported with this
Exporter. This method will always return
true if it has returned
force parameter serves to indicate whether or not
the caller desires the unexport to occur even if there are known
remote calls pending or in progress to the remote object that were
made possible by this
true, then the remote object will be forcibly unexported even if there are remote calls pending or in progress, and this method will return
false, then this acts as a hint to the implementation that the remote object should not be unexported if there are known remote calls pending or in progress, and this method will either unexport the remote object and return
trueor not unexport the remote object and return
false. If the implementation detects that there are indeed remote calls pending or in progress, then it should return
false; otherwise, it must return
true. If the implementation does not support being able to unexport conditionally based on knowledge of remote calls pending or in progress, then it must implement this method as if
If the remote object is unexported as a result of this method, then the implementation may (and should, if possible) prevent remote calls in progress from being able to communicate their results successfully.
true, the remote object will be unexported even if there are remote calls pending or in progress; if
false, the remote object may only be unexported if there are no known remote calls pending or in progress
trueif the remote object is unexported when this method returns and
IllegalStateException- if an object has not been exported with this
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.