public class DefaultServiceFetcher extends Object implements IRequiredServiceFetcher
Modifier and Type | Class and Description |
---|---|
class |
DefaultServiceFetcher.StoreDelegationResultListener<T>
Simple listener that can store the result in a member variable.
|
class |
DefaultServiceFetcher.StoreIntermediateDelegationResultListener<T>
Simple listener that can store the result in a member variable.
|
Constructor and Description |
---|
DefaultServiceFetcher(IServiceProvider provider,
IInternalAccess ia,
boolean realtime)
Create a new required service fetcher.
|
Modifier and Type | Method and Description |
---|---|
<T> IFuture<T> |
createProxy(IService service,
RequiredServiceInfo info,
RequiredServiceBinding binding)
Create a proxy.
|
Map<String,Object> |
getArguments(ComponentInstanceInfo component,
String[] imports,
IValueFetcher fetcher,
ClassLoader cl)
Get the arguments.
|
IFuture<Collection<IExternalAccess>> |
getChildExternalAccesses(IComponentIdentifier cid,
IServiceProvider provider,
RequiredServiceInfo info,
RequiredServiceBinding binding)
Get a fitting (of given type) child component.
|
IFuture<IExternalAccess> |
getParentAccess(IServiceProvider provider,
RequiredServiceInfo info,
RequiredServiceBinding binding) |
<T> IFuture<T> |
getService(RequiredServiceInfo info,
RequiredServiceBinding bd,
boolean rebind,
IFilter<T> filter)
Get a required service.
|
<T> IIntermediateFuture<T> |
getServices(RequiredServiceInfo info,
RequiredServiceBinding bd,
boolean rebind,
IFilter<T> filter)
Get a required multi service.
|
public DefaultServiceFetcher(IServiceProvider provider, IInternalAccess ia, boolean realtime)
public <T> IFuture<T> getService(RequiredServiceInfo info, RequiredServiceBinding bd, boolean rebind, IFilter<T> filter)
getService
in interface IRequiredServiceFetcher
info
- The service info.rebind
- Flag if should be rebound.public <T> IIntermediateFuture<T> getServices(RequiredServiceInfo info, RequiredServiceBinding bd, boolean rebind, IFilter<T> filter)
getServices
in interface IRequiredServiceFetcher
info
- The service info.rebind
- Flag if should be rebound.public IFuture<Collection<IExternalAccess>> getChildExternalAccesses(IComponentIdentifier cid, IServiceProvider provider, RequiredServiceInfo info, RequiredServiceBinding binding)
public Map<String,Object> getArguments(ComponentInstanceInfo component, String[] imports, IValueFetcher fetcher, ClassLoader cl)
public IFuture<IExternalAccess> getParentAccess(IServiceProvider provider, RequiredServiceInfo info, RequiredServiceBinding binding)
public <T> IFuture<T> createProxy(IService service, RequiredServiceInfo info, RequiredServiceBinding binding)
Copyright © 2013. All Rights Reserved.