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.
|
public DefaultServiceFetcher(IServiceProvider provider, IInternalAccess ia, boolean realtime)
public <T> IFuture<T> getService(RequiredServiceInfo info, RequiredServiceBinding bd, boolean rebind, IRemoteFilter<T> filter)
getService
in interface IRequiredServiceFetcher
info
- The service info.rebind
- Flag if should be rebound.public <T> ITerminableIntermediateFuture<T> getServices(RequiredServiceInfo info, RequiredServiceBinding bd, boolean rebind, IRemoteFilter<T> filter)
getServices
in interface IRequiredServiceFetcher
info
- The service info.rebind
- Flag if should be rebound.public <T> T getLastService()
getLastService
in interface IRequiredServiceFetcher
public <T> Collection<T> getLastServices()
getLastServices
in interface IRequiredServiceFetcher
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.