OSGi Service Platform
Release 4

org.osgi.service.condpermadmin
Class Condition.BooleanCondition

java.lang.Object
  extended byorg.osgi.service.condpermadmin.Condition.BooleanCondition
All Implemented Interfaces:
Condition
Enclosing class:
Condition

public static final class Condition.BooleanCondition
extends java.lang.Object
implements Condition

Package internal class used to define the Condition.FALSE and Condition.TRUE constants.


Nested Class Summary
 
Nested classes inherited from class org.osgi.service.condpermadmin.Condition
Condition.BooleanCondition
 
Field Summary
 
Fields inherited from interface org.osgi.service.condpermadmin.Condition
FALSE, TRUE
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isPostponed

public boolean isPostponed()
Description copied from interface: Condition
This method returns true if the evaluation of the Condition must be postponed until the end of the permission check. If it returns false, it must be able to directly answer the isSatisfied method. In other words, isSatisfied() will return very quickly since no external sources, such as for example users, need to be consulted.

Specified by:
isPostponed in interface Condition
Returns:
false if evaluation is immediate, otherwise true to indicate the evaluation must be postponed.

isSatisfied

public boolean isSatisfied()
Description copied from interface: Condition
This method returns true if the Condition is satisfied.

Specified by:
isSatisfied in interface Condition

isMutable

public boolean isMutable()
Description copied from interface: Condition
This method returns true if the satisfiability may change.

Specified by:
isMutable in interface Condition

isSatisfied

public boolean isSatisfied(Condition[] conds,
                           java.util.Dictionary context)
Description copied from interface: Condition
This method returns true if the set of Conditions are satisfied. Although this method is not static, it should be implemented as if it were static. All of the passed Conditions will have the same type and will correspond to the class type of the object on which this method is invoked.

Specified by:
isSatisfied in interface Condition
Parameters:
conds - the array of Conditions that must be satisfied
context - 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.
Returns:
true if all the Conditions are satisfied.

OSGi Service Platform
Release 4

Copyright (c) OSGi Alliance (2000, 2005). All Rights Reserved.