OSGi™ Service Platform
Release 4 Version 4.1

org.osgi.framework
Class FrameworkUtil

java.lang.Object
  extended byorg.osgi.framework.FrameworkUtil

public class FrameworkUtil
extends java.lang.Object

Framework Utility class.

This class contains utility methods which access Framework functions that may be useful to bundles.

Since:
1.3
ThreadSafe

Method Summary
static Filter createFilter(java.lang.String filter)
          Creates a Filter object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFilter

public static Filter createFilter(java.lang.String filter)
                           throws InvalidSyntaxException
Creates a Filter object. This Filter object may be used to match a ServiceReference object or a Dictionary object.

If the filter cannot be parsed, an InvalidSyntaxException will be thrown with a human readable message where the filter became unparsable.

Parameters:
filter - The filter string.
Returns:
A Filter object encapsulating the filter string.
Throws:
InvalidSyntaxException - If filter contains an invalid filter string that cannot be parsed.
java.lang.NullPointerException - If filter is null.
See Also:
Filter

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