/** * Get all services of a type. // * (Returns required service proxy). * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IInternalAccess component, Class<T> type, String scope, boolean proxy) { return getServices(component, type, scope, (IAsyncFilter<T>)null, proxy); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IExternalAccess provider, Class<T> type) { return getServices(provider, type, null); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IInternalAccess component, ClassInfo type) { return getServices(component, type, null, true); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IInternalAccess component, ClassInfo type, String scope, IAsyncFilter<T> filter) { return getServices(component, type, scope, filter, true); }
/** * Get all services of a type. // * (Returns required service proxy). * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IInternalAccess component, Class<T> type) { return getServices(component, type, null, true); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IExternalAccess provider, ClassInfo type) { return getServices(provider, type, null); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IServiceProvider provider, Class<T> type, String scope) { return getServices(provider, type, scope, (IRemoteFilter<T>)null); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IServiceProvider provider, Class<T> type) { return getServices(provider, type, null); }
/** * Get all services of a type. // * (Returns required service proxy). * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IInternalAccess component, Class<T> type, String scope) { return getServices(component, type, scope, (IAsyncFilter<T>)null, true); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IExternalAccess provider, Class<T> type, String scope) { return getServices(provider, type, scope, (IAsyncFilter<T>)null); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IInternalAccess component, ClassInfo type, String scope) { return getServices(component, type, scope, (IAsyncFilter<T>)null, true); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IInternalAccess component, ClassInfo type, boolean proxy) { return getServices(component, type, null, proxy); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IInternalAccess component, ClassInfo type, String scope, boolean proxy) { return getServices(component, type, scope, (IAsyncFilter<T>)null, proxy); }
/** * Get all services of a type. * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IExternalAccess provider, ClassInfo type, String scope) { return getServices(provider, type, scope, (IAsyncFilter<T>)null); }
/** * Get all services of a type. // * (Returns required service proxy). * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(IInternalAccess component, Class<T> type, String scope, IAsyncFilter<T> filter) { return getServices(component, type, scope, filter, true); }
/** * Get all services of a type. // * (Returns required service proxy). * @param type The class. * @return The corresponding services. */ public static <T> ITerminableIntermediateFuture<T> getServices(final IInternalAccess component, final Class<T> type, final String scope, final IAsyncFilter<T> filter, final boolean proxy) { return getServices(component, component.getComponentIdentifier(), type, scope, filter, proxy); }
@Classname("getServices(IExternalAccess provider, final Class<T> type, final String scope, final IAsyncFilter<T> filter)") public ITerminableIntermediateFuture<T> execute(IInternalAccess ia) { return getServices(ia, type, scope, filter); } });
@Classname("getServices(IExternalAccess provider, final Class<T> type, final String scope, final IAsyncFilter<T> filter)") public ITerminableIntermediateFuture<T> execute(IInternalAccess ia) { return getServices(ia, type, scope, filter); } });
/** * Find services by type and tags. Service must have all the tags. * @param component The component. * @param type The service type. * @param scope The search scope. * @param tags The tags. * @return A matching service */ public static <T> ITerminableIntermediateFuture<T> getTaggedServices(final IInternalAccess component, Class<T> type, String scope, final String... tags) { return getServices(component, type, scope, new TagFilter<T>(component.getExternalAccess(), tags)); }
/** * Find services by type and tags. Service must have all the tags. * @param component The component. * @param type The service type. * @param scope The search scope. * @param tags The tags. * @return A matching service */ public static <T> ITerminableIntermediateFuture<T> getTaggedServices(final IInternalAccess component, ClassInfo type, String scope, final String... tags) { return getServices(component, type, scope, new TagFilter<T>(component.getExternalAccess(), tags)); }