OSGi Service Platform
Release 4

org.osgi.service.condpermadmin
Class BundleLocationCondition

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

public class BundleLocationCondition
extends java.lang.Object

Checks to see if a Bundle matches the given location pattern. Pattern matching is done using FilePermission style patterns.

Version:
$Revision: 1.9 $

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 specify the location to match the Bundle location to. Matching is done according to the patterns documented in FilePermission.

OSGi Service Platform
Release 4

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