final class ConstrainableAID extends AID implements RemoteMethodControl, TrustEquivalence
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.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ConstrainableAID.State |
(package private) static class |
ConstrainableAID.Verifier
A
ProxyTrust trust verifier for
ConstrainableAID instances. |
Modifier and Type | Field and Description |
---|---|
private MethodConstraints |
constraints
the client constraints
|
private static Method[] |
methodMapping |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
private static final long serialVersionUID
private static final Method[] methodMapping
private final MethodConstraints constraints
public ConstrainableAID(Activator activator, UID uid)
null
client constraints.activator
- the activatoruid
- the unique identifierIllegalArgumentException
- 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
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 trustedtrue
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()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.