org.osgi.service.condpermadmin
public class BundleLocationCondition extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Condition |
getCondition(Bundle bundle,
ConditionInfo info)
Constructs a condition that tries to match the passed Bundle's location
to the location pattern.
|
public static Condition getCondition(Bundle bundle, ConditionInfo info)
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.