This class contains utility methods which access Framework functions that may be useful to bundles.
Definition at line 52 of file FrameworkUtil.java.
Static Public Member Functions | |
static Filter | createFilter (String filter) throws InvalidSyntaxException |
Creates a Filter object. |
static Filter org.osgi.framework.FrameworkUtil.createFilter | ( | String | filter | ) | throws InvalidSyntaxException [static] |
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.
filter | The filter string. |
Filter
object encapsulating the filter string. InvalidSyntaxException | If filter contains an invalid filter string that cannot be parsed. | |
NullPointerException | If filter is null. |
Definition at line 76 of file FrameworkUtil.java.