public class RequiredServicesFeatureAdapter extends java.lang.Object implements IRequiredServicesFeature
Modifier and Type | Field and Description |
---|---|
protected IRequiredServicesFeature |
delegate
The delegate.
|
Constructor and Description |
---|
RequiredServicesFeatureAdapter(IRequiredServicesFeature delegate)
Create a new adapter.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
getLastRequiredService(java.lang.String name)
Get the result of the last search.
|
<T> java.util.Collection<T> |
getLastRequiredServices(java.lang.String name)
Get the result of the last search.
|
<T> IFuture<T> |
getRequiredService(java.lang.String name)
Get a required service of a given name.
|
<T> IFuture<T> |
getRequiredService(java.lang.String name,
boolean rebind)
Get a required service.
|
<T> IFuture<T> |
getRequiredService(java.lang.String name,
boolean rebind,
IAsyncFilter<T> filter)
Get a required service.
|
<T> IFuture<T> |
getRequiredService(java.lang.String name,
boolean rebind,
java.lang.String... tags)
Get a required service using tags.
|
RequiredServiceInfo |
getRequiredServiceInfo(java.lang.String name)
Get the required service info.
|
RequiredServiceInfo[] |
getRequiredServiceInfos()
Get the required service infos.
|
<T> ITerminableIntermediateFuture<T> |
getRequiredServices(java.lang.String name)
Get a required services of a given name.
|
<T> ITerminableIntermediateFuture<T> |
getRequiredServices(java.lang.String name,
boolean rebind)
Get a required services.
|
<T> ITerminableIntermediateFuture<T> |
getRequiredServices(java.lang.String name,
boolean rebind,
IAsyncFilter<T> filter)
Get a required services.
|
<T> ITerminableIntermediateFuture<T> |
getRequiredServices(java.lang.String name,
boolean rebind,
java.lang.String... tags)
Get a required services using tags.
|
java.lang.String |
rename(java.lang.String name)
Rename if necessary.
|
<T> IFuture<T> |
searchService(java.lang.Class<T> type)
Get one service of a type.
|
<T> IFuture<T> |
searchService(java.lang.Class<T> type,
IComponentIdentifier cid)
Get one service of a type from a specific component.
|
<T> IFuture<T> |
searchService(java.lang.Class<T> type,
java.lang.String scope)
Get one service of a type.
|
<T> IIntermediateFuture<T> |
searchServices(java.lang.Class<T> type)
Get all services of a type.
|
<T> IIntermediateFuture<T> |
searchServices(java.lang.Class<T> type,
java.lang.String scope)
Get all services of a type.
|
protected IRequiredServicesFeature delegate
public RequiredServicesFeatureAdapter(IRequiredServicesFeature delegate)
public RequiredServiceInfo[] getRequiredServiceInfos()
getRequiredServiceInfos
in interface IRequiredServicesFeature
public RequiredServiceInfo getRequiredServiceInfo(java.lang.String name)
getRequiredServiceInfo
in interface IRequiredServicesFeature
name
- The name.public <T> IFuture<T> getRequiredService(java.lang.String name)
getRequiredService
in interface IRequiredServicesFeature
name
- The service name.public <T> ITerminableIntermediateFuture<T> getRequiredServices(java.lang.String name)
getRequiredServices
in interface IRequiredServicesFeature
name
- The services name.public <T> IFuture<T> getRequiredService(java.lang.String name, boolean rebind)
getRequiredService
in interface IRequiredServicesFeature
name
- The required service name.rebind
- If false caches results.public <T> ITerminableIntermediateFuture<T> getRequiredServices(java.lang.String name, boolean rebind)
getRequiredServices
in interface IRequiredServicesFeature
name
- The required service name.rebind
- If false caches results.public <T> IFuture<T> getRequiredService(java.lang.String name, boolean rebind, IAsyncFilter<T> filter)
getRequiredService
in interface IRequiredServicesFeature
name
- The required service name.rebind
- If false caches results.public <T> ITerminableIntermediateFuture<T> getRequiredServices(java.lang.String name, boolean rebind, IAsyncFilter<T> filter)
getRequiredServices
in interface IRequiredServicesFeature
name
- The required service name.rebind
- If false caches results.public <T> IFuture<T> getRequiredService(java.lang.String name, boolean rebind, java.lang.String... tags)
getRequiredService
in interface IRequiredServicesFeature
name
- The required service name.rebind
- If false caches results.tags
- The service tags.public <T> ITerminableIntermediateFuture<T> getRequiredServices(java.lang.String name, boolean rebind, java.lang.String... tags)
getRequiredServices
in interface IRequiredServicesFeature
name
- The required service name.rebind
- If false caches results.tags
- The service tags.public <T> T getLastRequiredService(java.lang.String name)
getLastRequiredService
in interface IRequiredServicesFeature
name
- The required service name.public <T> java.util.Collection<T> getLastRequiredServices(java.lang.String name)
getLastRequiredServices
in interface IRequiredServicesFeature
name
- The required services name.public <T> IFuture<T> searchService(java.lang.Class<T> type, IComponentIdentifier cid)
searchService
in interface IRequiredServicesFeature
type
- The class.cid
- The component identifier of the target component.public <T> IFuture<T> searchService(java.lang.Class<T> type)
searchService
in interface IRequiredServicesFeature
type
- The class.public <T> IFuture<T> searchService(java.lang.Class<T> type, java.lang.String scope)
searchService
in interface IRequiredServicesFeature
type
- The class.public <T> IIntermediateFuture<T> searchServices(java.lang.Class<T> type)
searchServices
in interface IRequiredServicesFeature
type
- The class.public <T> IIntermediateFuture<T> searchServices(java.lang.Class<T> type, java.lang.String scope)
searchServices
in interface IRequiredServicesFeature
type
- The class.public java.lang.String rename(java.lang.String name)