/** * Add a service query to the registry. * @param type The service type. * @param scope The scope. * @param filter The filter. */ public static <T> ISubscriptionIntermediateFuture<T> addQuery(final IComponentIdentifier cid, Class<T> type, String scope, IAsyncFilter<T> filter) { ServiceQuery<T> query = new ServiceQuery<T>(type, scope, filter, cid); return SynchronizedServiceRegistry.getRegistry(cid).addQuery(query); } }
/** * Add a service query to the registry. * @param type The service type. * @param scope The scope. * @param filter The filter. */ public <T> ISubscriptionIntermediateFuture<T> addQuery(Class<T> type, String scope, IAsyncFilter<T> filter) { ServiceQuery<T> query = new ServiceQuery<T>(type, scope, filter, getComponent().getComponentIdentifier()); return SynchronizedServiceRegistry.getRegistry(getComponent()).addQuery(query); } }