OSGi™ Service Platform
Release 4 Version 4.1

org.osgi.service.condpermadmin
Class BundleLocationCondition

java.lang.Object
  extended byorg.osgi.service.condpermadmin.BundleLocationCondition

public class BundleLocationCondition
extends java.lang.Object

Condition to test if the location of a bundle matches a pattern. Pattern matching is done according to the filter string matching rules.


Method Summary
static Condition getCondition(Bundle bundle, ConditionInfo info)
          Constructs a condition that tries to match the passed Bundle's location to the location pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCondition

public static Condition getCondition(Bundle bundle,
                                     ConditionInfo info)
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.

OSGi™ Service Platform
Release 4 Version 4.1

Copyright © OSGi Alliance (2000, 2007). All Rights Reserved. Licensed under the OSGi Specification License, Version 1.0