public interface MessageRetargeter
When the message dispatch mechanism attempts to deliver a message to an
object, if the object implements this interface the server will instead call
the findActualTarget()
method and attempt to
deliver the message to the object thus returned. This redirection can be
applied recursively (i.e., the new target may itself implement this
interface).
Compare and contrast with SourceRetargeter
.
Modifier and Type | Method and Description |
---|---|
DispatchTarget |
findActualTarget(Class type)
Return the object that should actually receive a message in place of
this object.
|
DispatchTarget findActualTarget(Class type)
type
- The class for which the message might have been intended.Copyright © 2017. All rights reserved.