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> ISubscriptionIntermediateFuture<T> |
addQuery(java.lang.Class<T> type)
Add a query for a declared required service.
|
<T> ISubscriptionIntermediateFuture<T> |
addQuery(ServiceQuery<T> query)
Add a service query.
|
<T> ISubscriptionIntermediateFuture<T> |
addQuery(java.lang.String name)
Add a query for a declared required service.
|
<T> T |
getLocalService(java.lang.Class<T> type)
Resolve a required service of a given type.
|
<T> T |
getLocalService(java.lang.String name)
Resolve a declared required service of a given name.
|
<T> T |
getLocalService0(java.lang.Class<T> type)
Resolve a required service of a given type.
|
<T> java.util.Collection<T> |
getLocalServices(java.lang.Class<T> type)
Resolve a required services of a given type.
|
<T> java.util.Collection<T> |
getLocalServices(java.lang.String name)
Resolve a required services of a given name.
|
<T> IFuture<T> |
getService(java.lang.Class<T> type)
Resolve a required service of a given type.
|
<T> IFuture<T> |
getService(java.lang.String name)
Resolve a declared required service of a given name.
|
<T> ITerminableIntermediateFuture<T> |
getServices(java.lang.Class<T> type)
Resolve a required services of a given type.
|
<T> ITerminableIntermediateFuture<T> |
getServices(java.lang.String name)
Resolve a required services of a given name.
|
java.lang.String |
rename(java.lang.String name)
Rename if necessary.
|
<T> T |
searchLocalService(ServiceQuery<T> query)
Search for matching services and provide first result.
|
<T> java.util.Collection<T> |
searchLocalServices(ServiceQuery<T> query)
Search for all matching services.
|
<T> IFuture<T> |
searchService(ServiceQuery<T> query)
Search for matching services and provide first result.
|
<T> ITerminableIntermediateFuture<T> |
searchServices(ServiceQuery<T> query)
Search for all matching services.
|
protected IRequiredServicesFeature delegate
public RequiredServicesFeatureAdapter(IRequiredServicesFeature delegate)
public <T> IFuture<T> getService(java.lang.String name)
getService
in interface IRequiredServicesFeature
name
- The service name.public <T> T getLocalService0(java.lang.Class<T> type)
getLocalService0
in interface IRequiredServicesFeature
type
- The service type.public <T> IFuture<T> getService(java.lang.Class<T> type)
getService
in interface IRequiredServicesFeature
type
- The service type.public <T> ITerminableIntermediateFuture<T> getServices(java.lang.String name)
getServices
in interface IRequiredServicesFeature
name
- The services name.public <T> ITerminableIntermediateFuture<T> getServices(java.lang.Class<T> type)
getServices
in interface IRequiredServicesFeature
type
- The services type.public <T> T getLocalService(java.lang.String name)
getLocalService
in interface IRequiredServicesFeature
name
- The service name.public <T> T getLocalService(java.lang.Class<T> type)
getLocalService
in interface IRequiredServicesFeature
type
- The service type.public <T> java.util.Collection<T> getLocalServices(java.lang.String name)
getLocalServices
in interface IRequiredServicesFeature
name
- The services name.public <T> java.util.Collection<T> getLocalServices(java.lang.Class<T> type)
getLocalServices
in interface IRequiredServicesFeature
type
- The services type.public <T> IFuture<T> searchService(ServiceQuery<T> query)
searchService
in interface IExternalRequiredServicesFeature
query
- The search query.public <T> T searchLocalService(ServiceQuery<T> query)
searchLocalService
in interface IRequiredServicesFeature
query
- The search query.public <T> ITerminableIntermediateFuture<T> searchServices(ServiceQuery<T> query)
searchServices
in interface IExternalRequiredServicesFeature
query
- The search query.public <T> java.util.Collection<T> searchLocalServices(ServiceQuery<T> query)
searchLocalServices
in interface IRequiredServicesFeature
query
- The search query.public <T> ISubscriptionIntermediateFuture<T> addQuery(java.lang.String name)
addQuery
in interface IRequiredServicesFeature
name
- The name of the required service declaration.public <T> ISubscriptionIntermediateFuture<T> addQuery(java.lang.Class<T> type)
addQuery
in interface IRequiredServicesFeature
type
- The type of the required service declaration.public <T> ISubscriptionIntermediateFuture<T> addQuery(ServiceQuery<T> query)
addQuery
in interface IExternalRequiredServicesFeature
query
- The search query.public java.lang.String rename(java.lang.String name)