public class SServiceProvider extends Object
Modifier and Type | Field and Description |
---|---|
static IResultSelector |
abortanyselector |
static Map |
avisitdeciders |
static IResultSelector |
contanyselector |
static IVisitDecider |
contdecider
The visit decider that never stops.
|
static ISearchManager |
localmanager
The sequential search manager that searches only locally.
|
static Map |
methodreferences
The reference method cache (method -> boolean[] (is reference)).
|
static ISearchManager |
parallelmanager
The parallel search manager.
|
static IVisitDecider |
rcontdecider |
static ISearchManager |
sequentialmanager
The sequential search manager.
|
static ISearchManager |
upwardsmanager
The sequential search manager that searches only upwards.
|
static Map |
visitdeciders |
Constructor and Description |
---|
SServiceProvider() |
Modifier and Type | Method and Description |
---|---|
static <T> IFuture<T> |
getDeclaredService(IServiceProvider provider,
Class<T> type)
Get all declared services of the given provider.
|
static IIntermediateFuture<IService> |
getDeclaredServices(IServiceProvider provider)
Get all declared services of the given provider.
|
static boolean[] |
getLocalReferenceInfo(Method method,
boolean refdef)
Get the copy info for method parameters.
|
static boolean[] |
getReferenceInfo(Method method,
boolean refdef,
boolean local)
Get the copy info for method parameters.
|
static boolean[] |
getRemoteReferenceInfo(Method method,
boolean refdef)
Get the copy info for method parameters.
|
static ISearchManager |
getSearchManager(boolean multiple)
Get the fitting search manager.
|
static ISearchManager |
getSearchManager(boolean multiple,
String scope)
Get the fitting search manager.
|
static <T> IFuture<T> |
getService(IServiceProvider provider,
Class<T> type)
Get one service of a type.
|
static <T> IFuture<T> |
getService(IServiceProvider provider,
Class<T> type,
String scope)
Get one service of a type.
|
static <T> IFuture<T> |
getService(IServiceProvider provider,
Class<T> type,
String scope,
IRemoteFilter<T> filter)
Get one service of a type.
|
static <T> IFuture<T> |
getService(IServiceProvider provider,
IComponentIdentifier cid,
Class<T> type)
Get a service from a specific component.
|
static <T> IFuture<T> |
getService(IServiceProvider provider,
IResultSelector selector)
Get one service of a type.
|
static <T> IFuture<T> |
getService(IServiceProvider provider,
IServiceIdentifier sid)
Get one service with id.
|
static <T> ITerminableIntermediateFuture<T> |
getServices(IServiceProvider provider,
Class<T> type)
Get all services of a type.
|
static <T> ITerminableIntermediateFuture<T> |
getServices(IServiceProvider provider,
Class<T> type,
String scope)
Get all services of a type.
|
static <T> ITerminableIntermediateFuture<T> |
getServices(IServiceProvider provider,
Class<T> type,
String scope,
IRemoteFilter<T> filter)
Get all services of a type.
|
static <T> IFuture<T> |
getServiceUpwards(IServiceProvider provider,
Class<T> type)
Get one service of a type and only search upwards (parents).
|
static IVisitDecider |
getVisitDecider(boolean abort)
Get the fitting visit decider.
|
static IVisitDecider |
getVisitDecider(boolean abort,
String scope)
Get the fitting visit decider.
|
static boolean |
isReturnValueLocalReference(Method method,
boolean refdef)
Test if return value is local reference.
|
static boolean |
isReturnValueRemoteReference(Method method,
boolean refdef)
Get the copy info for method parameters.
|
static <S> ITerminableIntermediateFuture<S> |
rankServices(ITerminableIntermediateFuture<S> searchfut,
IServiceRanker<S> ranker,
IRankingSearchTerminationDecider<S> decider)
Rank the services of a search with a specific ranker.
|
static <S> ITerminableIntermediateFuture<Tuple2<S,Double>> |
rankServicesWithScores(ITerminableIntermediateFuture<S> searchfut,
IServiceRanker<S> ranker,
IRankingSearchTerminationDecider<S> decider)
Rank the services of a search with a specific ranker and emit the scores.
|
public static final ISearchManager sequentialmanager
public static final ISearchManager parallelmanager
public static final ISearchManager upwardsmanager
public static final ISearchManager localmanager
public static final IVisitDecider contdecider
public static final IVisitDecider rcontdecider
public static final IResultSelector contanyselector
public static final IResultSelector abortanyselector
public static final Map avisitdeciders
public static final Map visitdeciders
public static final Map methodreferences
public static <T> IFuture<T> getService(IServiceProvider provider, Class<T> type)
type
- The class.public static <T> IFuture<T> getService(IServiceProvider provider, Class<T> type, String scope)
type
- The class.public static <T> IFuture<T> getService(IServiceProvider provider, Class<T> type, String scope, IRemoteFilter<T> filter)
type
- The class.public static <T> IFuture<T> getService(IServiceProvider provider, IServiceIdentifier sid)
clazz
- The class.public static <T> IFuture<T> getService(IServiceProvider provider, IComponentIdentifier cid, Class<T> type)
provider
- A service provider.cid
- The target component identifier.type
- The service type.public static <T> IFuture<T> getService(IServiceProvider provider, IResultSelector selector)
clazz
- The class.public static <T> ITerminableIntermediateFuture<T> getServices(IServiceProvider provider, Class<T> type)
type
- The class.public static <T> ITerminableIntermediateFuture<T> getServices(IServiceProvider provider, Class<T> type, String scope)
type
- The class.public static <T> ITerminableIntermediateFuture<T> getServices(IServiceProvider provider, Class<T> type, String scope, IRemoteFilter<T> filter)
type
- The class.public static <T> IFuture<T> getServiceUpwards(IServiceProvider provider, Class<T> type)
type
- The class.public static <T> IFuture<T> getDeclaredService(IServiceProvider provider, Class<T> type)
public static IIntermediateFuture<IService> getDeclaredServices(IServiceProvider provider)
public static <S> ITerminableIntermediateFuture<S> rankServices(ITerminableIntermediateFuture<S> searchfut, IServiceRanker<S> ranker, IRankingSearchTerminationDecider<S> decider)
public static <S> ITerminableIntermediateFuture<Tuple2<S,Double>> rankServicesWithScores(ITerminableIntermediateFuture<S> searchfut, IServiceRanker<S> ranker, IRankingSearchTerminationDecider<S> decider)
public static IVisitDecider getVisitDecider(boolean abort)
public static IVisitDecider getVisitDecider(boolean abort, String scope)
public static ISearchManager getSearchManager(boolean multiple)
multiple
- The multiple flag (i.e. one vs. multiple services required)public static ISearchManager getSearchManager(boolean multiple, String scope)
multiple
- The multiple flag (i.e. one vs. multiple services required)scope
- The search scope.public static boolean[] getLocalReferenceInfo(Method method, boolean refdef)
public static boolean[] getRemoteReferenceInfo(Method method, boolean refdef)
public static boolean[] getReferenceInfo(Method method, boolean refdef, boolean local)
public static boolean isReturnValueLocalReference(Method method, boolean refdef)
public static boolean isReturnValueRemoteReference(Method method, boolean refdef)
Copyright © 2013. All Rights Reserved.