org.jboss.osgi.spi.util
Class BundleContextHelper
java.lang.Object
org.jboss.osgi.spi.util.BundleContextHelper
public class BundleContextHelper
- extends Object
A helper for various BundleContext related operations.
- Since:
- 28-Apr-2010
- Author:
- thomas.Diesler@jboss.org
|
Method Summary |
org.osgi.framework.ServiceReference |
getServiceReference(String serviceName,
int timeout)
Get a ServiceReference with a given timeout. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleContextHelper
public BundleContextHelper(org.osgi.framework.BundleContext context)
getServiceReference
public org.osgi.framework.ServiceReference getServiceReference(String serviceName,
int timeout)
- Get a ServiceReference with a given timeout.
- Returns:
- The service ref, or null if the service was not registered in time.
Copyright © 2010. All Rights Reserved.