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,
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> IIntermediateFuture<T> |
getServices(IServiceProvider provider,
Class<T> type)
Get all services of a type.
|
static <T> IIntermediateFuture<T> |
getServices(IServiceProvider provider,
Class<T> type,
String scope)
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.
|
public static ISearchManager sequentialmanager
public static ISearchManager parallelmanager
public static ISearchManager upwardsmanager
public static ISearchManager localmanager
public static IVisitDecider contdecider
public static IVisitDecider rcontdecider
public static IResultSelector contanyselector
public static IResultSelector abortanyselector
public static Map avisitdeciders
public static Map visitdeciders
public static 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, 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> IIntermediateFuture<T> getServices(IServiceProvider provider, Class<T> type)
type
- The class.public static <T> IIntermediateFuture<T> getServices(IServiceProvider provider, Class<T> type, String scope)
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 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 © 2012. All Rights Reserved.