public class Services extends Object
| Constructor and Description |
|---|
Services() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
createProperties(String... elements) |
static boolean |
isAvailable(org.osgi.framework.BundleContext context,
Service service) |
static boolean |
isAvailable(org.osgi.framework.BundleContext context,
Set<Service> services) |
static boolean |
isAvailable(org.osgi.framework.BundleContext context,
String className) |
static boolean |
isAvailable(org.osgi.framework.BundleContext context,
String className,
Map<String,String> properties) |
static Set<Service> |
parseHeader(String header)
Parse an OSGi Export-Service header into a set of
Service representations |
public static Set<Service> parseHeader(String header)
Service representationsheader - the header valuepublic static boolean isAvailable(org.osgi.framework.BundleContext context,
String className)
throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionpublic static boolean isAvailable(org.osgi.framework.BundleContext context,
String className,
Map<String,String> properties)
throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionpublic static boolean isAvailable(org.osgi.framework.BundleContext context,
Service service)
throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionCopyright © 2011–2014 Red Hat. All rights reserved.