use of org.eclipse.ecf.discovery.IDiscoveryAdvertiser in project ecf by eclipse.
the class DiscoveryContainerTest method getDiscoveryAdvertiser.
protected IDiscoveryAdvertiser getDiscoveryAdvertiser() {
final IDiscoveryAdvertiser adapter = (IDiscoveryAdvertiser) container.getAdapter(IDiscoveryAdvertiser.class);
assertNotNull("Adapter must not be null", adapter);
return adapter;
}
use of org.eclipse.ecf.discovery.IDiscoveryAdvertiser in project ecf by eclipse.
the class DiscoveryTestsWithoutRegister method getDiscoveryAdvertiser.
protected IDiscoveryAdvertiser getDiscoveryAdvertiser() {
final IDiscoveryAdvertiser adapter = (IDiscoveryAdvertiser) container.getAdapter(IDiscoveryAdvertiser.class);
assertNotNull("Adapter must not be null", adapter);
return adapter;
}
use of org.eclipse.ecf.discovery.IDiscoveryAdvertiser in project ecf by eclipse.
the class Activator method waitForDiscoveryService.
public IDiscoveryAdvertiser waitForDiscoveryService(int waittime) throws InterruptedException {
if (discoveryTracker == null) {
discoveryTracker = new ServiceTracker(context, IDiscoveryAdvertiser.class.getName(), null);
discoveryTracker.open();
}
return (IDiscoveryAdvertiser) discoveryTracker.waitForService(waittime);
}
Aggregations