|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.activation.ActivationID
com.sun.jini.phoenix.AID
com.sun.jini.phoenix.ConstrainableAID
final class ConstrainableAID
A subclass of AID
that implements the RemoteMethodControl
interface by delegating to the contained activator.
This class exists as a convenience for activation system daemon
implementations supporting RemoteMethodControl
on proxies,
to avoid requiring all such implementations to make code available for
dynamic download to clients.
Nested Class Summary | |
---|---|
(package private) static class |
ConstrainableAID.State
|
(package private) static class |
ConstrainableAID.Verifier
A ProxyTrust trust verifier for
ConstrainableAID instances. |
Field Summary | |
---|---|
private MethodConstraints |
constraints
the client constraints |
private static Method[] |
methodMapping
|
private static long |
serialVersionUID
|
Fields inherited from class com.sun.jini.phoenix.AID |
---|
activator, uid |
Constructor Summary | |
---|---|
|
ConstrainableAID(Activator activator,
UID uid)
Creates an activation identifier containing the specified remote object activator, a new unique identifier, and null client constraints. |
private |
ConstrainableAID(Activator activator,
UID uid,
MethodConstraints constraints)
Creates an activation identifier containing the specified remote object activator and a new unique identifier. |
Method Summary | |
---|---|
boolean |
checkTrustEquivalence(Object obj)
Returns true if the object is an instance of this class with the same UID and a trust equivalent activator. |
MethodConstraints |
getConstraints()
Returns the client constraints. |
private ProxyTrustIterator |
getProxyTrustIterator()
Returns an iterator that yields the activator. |
RemoteMethodControl |
setConstraints(MethodConstraints constraints)
Returns a new copy of this activation identifier containing the same unique identifier and a copy of the activator with the new specified constraints. |
private Object |
writeReplace()
|
Methods inherited from class com.sun.jini.phoenix.AID |
---|
activate, equals, getUID, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static final Method[] methodMapping
private final MethodConstraints constraints
Constructor Detail |
---|
public ConstrainableAID(Activator activator, UID uid)
null
client constraints.
activator
- the activatoruid
- the unique identifier
IllegalArgumentException
- if the specified activator is not
an instance of RemoteMethodControl
or
TrustEquivalence
private ConstrainableAID(Activator activator, UID uid, MethodConstraints constraints)
activator
- the activatoruid
- the unique identifierconstraints
- the client constraints, or null
IllegalArgumentException
- if the specified activator is not
an instance of RemoteMethodControl
or
TrustEquivalence
Method Detail |
---|
private ProxyTrustIterator getProxyTrustIterator()
public RemoteMethodControl setConstraints(MethodConstraints constraints)
setConstraints
in interface RemoteMethodControl
constraints
- the client constraints, or null
getConstraints()
public MethodConstraints getConstraints()
getConstraints
in interface RemoteMethodControl
null
setConstraints(net.jini.core.constraint.MethodConstraints)
public boolean checkTrustEquivalence(Object obj)
checkTrustEquivalence
in interface TrustEquivalence
obj
- object to check that is not yet known to be trusted
true
if the specified object (that is not yet
known to be trusted) is equivalent in trust, content, and function to
this known trusted object, and returns false
otherwiseprivate Object writeReplace()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |