/** * Get the service container. * Internal method for accessing the service container. * @return The service container. */ public IServiceContainer getServiceContainer() { return interpreter.getServiceContainer(); }
/** * Get the required service property provider for a service. */ public INFMixedPropertyProvider getRequiredServicePropertyProvider(IServiceIdentifier sid) { return interpreter.getServiceContainer().getRequiredServicePropertyProvider(sid); }
/** * Has the service a property provider. */ public boolean hasRequiredServicePropertyProvider(IServiceIdentifier sid) { return interpreter.getServiceContainer().hasRequiredServicePropertyProvider(sid); }
/** * Schedule a step of the component. * May safely be called from external threads. * @param step Code to be executed as a step of the component. * @param delay The delay to wait before step should be done. * @return The result of the step. */ public <T> IFuture<T> scheduleStep(final IComponentStep<T> step, final long delay) { final Future<T> ret = new Future<T>(); SServiceProvider.getService(getServiceContainer(), IClockService.class, RequiredServiceInfo.SCOPE_PLATFORM) .addResultListener(createResultListener(new DelegationResultListener(ret) { public void customResultAvailable(Object result) { IClockService cs = (IClockService)result; cs.createTimer(delay, new ITimedObject() { public void timeEventOccurred(long currenttime) { scheduleStep(step).addResultListener(new DelegationResultListener(ret)); } }); } })); return ret; }
if(info!=null && info.isMultiple()) IFuture ifut = getServiceContainer().getRequiredServices(sernames[i]); sfut = ifut; sfut = getServiceContainer().getRequiredService(sernames[i]);
getServiceContainer().searchService(IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM) .addResultListener(new ExceptionDelegationResultListener<IComponentManagementService, Void>(fut)