|
OSGi Service Platform Release 4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to implement Conditions that are bound to Permissions using ConditionalPermissionCollection. The Permissions of the ConditionalPermissionCollection can only be used if the associated Condition is satisfied.
Nested Class Summary | |
static class |
Condition.BooleanCondition
Package internal class used to define the FALSE and
TRUE constants. |
Field Summary | |
static Condition |
FALSE
A condition object that will always evaluate to false and that is never postponed. |
static Condition |
TRUE
A condition object that will always evaluate to true and that is never postponed. |
Method Summary | |
boolean |
isMutable()
This method returns true if the satisfiability may change. |
boolean |
isPostponed()
This method returns true if the evaluation of the Condition must be postponed until the end of the permission check. |
boolean |
isSatisfied()
This method returns true if the Condition is satisfied. |
boolean |
isSatisfied(Condition[] conds,
java.util.Dictionary context)
This method returns true if the set of Conditions are satisfied. |
Field Detail |
public static final Condition TRUE
public static final Condition FALSE
Method Detail |
public boolean isPostponed()
public boolean isSatisfied()
public boolean isMutable()
public boolean isSatisfied(Condition[] conds, java.util.Dictionary context)
conds
- the array of Conditions that must be satisfiedcontext
- a Dictionary object that implementors can use to track
state. If this method is invoked multiple times in the same permission
evaluation, the same Dictionary will be passed multiple times. The
SecurityManager treats this Dictionary as an opaque object simply
creates an empty dictionary and passes it to subsequent invocations
if multiple invocatios are needed.
|
OSGi Service Platform Release 4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |