public interface MethodConstraints
Method
to InvocationConstraints
, used to
specify per-method constraints. An instance of this interface must implement Object.equals
to return true
when passed a mapping that is equivalent
in trust, content, and function, and to return false
otherwise. That is, the
equals
method must be a sufficient substitute for TrustEquivalence.checkTrustEquivalence
.
Modifier and Type | Method and Description |
---|---|
InvocationConstraints |
getConstraints(Method method)
Returns the constraints for the specified method as a non-
null value. |
Iterator |
possibleConstraints()
Returns an iterator that yields all of the possible distinct constraints that can be returned
by
getConstraints , in arbitrary order and with duplicates permitted. |
InvocationConstraints getConstraints(Method method)
null
value. The same
constraints are always returned for any given Method
instance and for any
equivalent Method
instance. Note that no exception is thrown for "unknown"
methods; a constraints instance is always returned.method
- the methodnull
valueNullPointerException
- if the argument is null
Iterator possibleConstraints()
getConstraints
, in arbitrary order and with duplicates permitted.
The iterator throws an UnsupportedOperationException
on any attempt to remove an
element.getConstraints
, in arbitrary order and with duplicates permittedCopyright © GigaSpaces.