org.osgi.service.condpermadmin.BundleLocationCondition Class Reference

List of all members.


Detailed Description

Condition to test if the location of a bundle matches a pattern.

Pattern matching is done according to the filter string matching rules.

Version:
Revision
1.18

Definition at line 33 of file BundleLocationCondition.java.


Static Public Member Functions

static Condition getCondition (final Bundle bundle, ConditionInfo info)
 Constructs a condition that tries to match the passed Bundle's location to the location pattern.

Member Function Documentation

static Condition org.osgi.service.condpermadmin.BundleLocationCondition.getCondition ( final Bundle  bundle,
ConditionInfo  info 
) [static]

Constructs a condition that tries to match the passed Bundle's location to the location pattern.

Parameters:
bundle The Bundle being evaluated.
info The ConditionInfo to construct the condition for. The args of the ConditionInfo must be a single String which specifies the location pattern to match against the Bundle location. Matching is done according to the filter string matching rules. Any '*' characters in the location argument are used as wildcards when matching bundle locations unless they are escaped with a '\' character.
Returns:
Condition object for the requested condition.

Definition at line 50 of file BundleLocationCondition.java.

References org.osgi.service.condpermadmin.ConditionInfo.getArgs(), org.osgi.framework.InvalidSyntaxException.getFilter(), org.osgi.framework.Bundle.getLocation(), org.osgi.service.condpermadmin.ConditionInfo.getType(), and org.osgi.framework.Filter.match().


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:24 2010 for OpenMobileIS by  doxygen 1.5.4