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
Simple listener that can store the result in a member variable.
|
Constructor and Description |
---|
DefaultServiceFetcher(IServiceProvider provider,
IExternalAccess access)
Create a new required service fetcher.
|
Modifier and Type | Method and Description |
---|---|
IFuture |
createProxy(IService service,
RequiredServiceInfo info,
RequiredServiceBinding binding)
Create a proxy.
|
IFuture<Collection<IExternalAccess>> |
getChildExternalAccesses(IComponentIdentifier cid,
IServiceProvider provider,
RequiredServiceInfo info,
RequiredServiceBinding binding)
Get a fitting (of given type) child component.
|
IFuture |
getParentAccess(IServiceProvider provider,
RequiredServiceInfo info,
RequiredServiceBinding binding) |
<T> IFuture<T> |
getService(RequiredServiceInfo info,
RequiredServiceBinding bd,
boolean rebind)
Get a required service.
|
IIntermediateFuture |
getServices(RequiredServiceInfo info,
RequiredServiceBinding bd,
boolean rebind)
Get a required multi service.
|
public DefaultServiceFetcher(IServiceProvider provider, IExternalAccess access)
public <T> IFuture<T> getService(RequiredServiceInfo info, RequiredServiceBinding bd, boolean rebind)
getService
in interface IRequiredServiceFetcher
info
- The service info.rebind
- Flag if should be rebound.public IIntermediateFuture getServices(RequiredServiceInfo info, RequiredServiceBinding bd, boolean rebind)
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 IFuture getParentAccess(IServiceProvider provider, RequiredServiceInfo info, RequiredServiceBinding binding)
public IFuture createProxy(IService service, RequiredServiceInfo info, RequiredServiceBinding binding)
Copyright © 2012. All Rights Reserved.