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(BundleContext context)
           
 
Method Summary
 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(BundleContext context)
Method Detail

getServiceReference

public 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 JBoss, a division of Red Hat, Inc.. All Rights Reserved.