Top Description Inners Constructors Methods
org.osgi.framework

public Class FrameworkUtil

extends Object
Class Inheritance
Imports
java.lang.reflect.AccessibleObject, .Constructor, .InvocationTargetException, .Method, .Modifier, java.security.AccessController, .PrivilegedAction, java.util.AbstractMap, .ArrayList, .Collection, .Dictionary, .Enumeration, .Iterator, .List, .Map, .Set, javax.security.auth.x500.X500Principal

Framework Utility class.

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

Author
$Id: e93d15cef98c0e7f425f3b076d317c46ebb9a52a $
Since
1.3

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
FrameworkUtil.CaseInsensitiveMap

This Map is used for case-insensitive key lookup during filter evaluation.

private static class
FrameworkUtil.DNChainMatching

This class contains a method to match a distinguished name (DN) chain against and DN chain pattern.

private static class
FrameworkUtil.FilterImpl

RFC 1960-based Filter.

private static class
FrameworkUtil.ServiceReferenceMap

This Map is used for key lookup from a ServiceReference during filter evaluation.

private static class

Constructor Summary

AccessConstructor and Description
private
FrameworkUtil()

FrameworkUtil objects may not be constructed.

Method Summary

Modifier and TypeMethod and Description
public static Filter

Returns:

A Filter object encapsulating the filter string.
createFilter
(String
The filter string.
filter
)

Creates a Filter object.

public static Bundle

Returns:

A Bundle for the specified bundle class or null if the specified class was not defined by a bundle class loader.
getBundle
(final Class<?>
A class defined by a bundle class loader.
classFromBundle
)

Return a Bundle for the specified bundle class.

public static boolean

Returns:

true If the pattern matches the DN chain; otherwise false is returned.
matchDistinguishedNameChain
(String
The pattern against which to match the DN chain.
matchPattern
,
List<String>
The DN chain to match against the specified pattern. Each element of the chain must be of type String and use the format defined in RFC 2253.
dnChain
)

Match a Distinguished Name (DN) chain against a pattern.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait