org.jboss.osgi.spi.util
Class BundleContextHelper

java.lang.Object
  extended by 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

Constructor Summary
BundleContextHelper(org.osgi.framework.BundleContext context)
           
 
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
 

Constructor Detail

BundleContextHelper

public BundleContextHelper(org.osgi.framework.BundleContext context)
Method Detail

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.