public class ComponentServiceContainer extends BasicServiceContainer
| Constructor and Description |
|---|
ComponentServiceContainer(IComponentAdapter adapter,
String type,
boolean copy,
IComponentInstance instance)
Create a new service container.
|
| Modifier and Type | Method and Description |
|---|---|
IRequiredServiceFetcher |
createServiceFetcher(String name)
Create a service fetcher.
|
IFuture<Collection<IServiceProvider>> |
getChildren()
Get the children service containers.
|
IFuture<IServiceProvider> |
getParent()
Get the parent service container.
|
IFuture<IService> |
getRequiredService(RequiredServiceInfo info,
RequiredServiceBinding binding,
boolean rebind)
Get a required service.
|
IIntermediateFuture<IService> |
getRequiredServices(RequiredServiceInfo info,
RequiredServiceBinding binding,
boolean rebind)
Get required services.
|
String |
getType()
Get the type of the service provider (e.g. enclosing component type).
|
<T> IFuture<T> |
searchService(Class<T> type)
Get one service of a type.
|
<T> IFuture<T> |
searchService(Class<T> type,
String scope)
Get one service of a type.
|
<T> IIntermediateFuture<T> |
searchServices(Class<T> type)
Get all services of a type.
|
<T> IIntermediateFuture<T> |
searchServices(Class<T> type,
String scope)
Get all services of a type.
|
<T> IFuture<T> |
searchServiceUpwards(Class<T> type)
Get one service of a type and only search upwards (parents).
|
IFuture<Void> |
start()
Start the service.
|
String |
toString()
Get the string representation.
|
addInterceptor, addRequiredServiceInfos, addService, equals, getId, getInterceptors, getProvidedService, getProvidedServices, getRequiredService, getRequiredService, getRequiredService, getRequiredServiceInfo, getRequiredServiceInfos, getRequiredServices, getRequiredServices, getRequiredServices, getService, getServices, hashCode, removeInterceptor, removeService, setRequiredServiceInfos, shutdownpublic ComponentServiceContainer(IComponentAdapter adapter, String type, boolean copy, IComponentInstance instance)
public IFuture<IService> getRequiredService(RequiredServiceInfo info, RequiredServiceBinding binding, boolean rebind)
getRequiredService in class BasicServiceContainerpublic IIntermediateFuture<IService> getRequiredServices(RequiredServiceInfo info, RequiredServiceBinding binding, boolean rebind)
getRequiredServices in class BasicServiceContainerpublic <T> IFuture<T> searchService(Class<T> type)
type - The class.public <T> IFuture<T> searchService(Class<T> type, String scope)
type - The class.public <T> IFuture<T> searchServiceUpwards(Class<T> type)
type - The class.public <T> IIntermediateFuture<T> searchServices(Class<T> type)
type - The class.public <T> IIntermediateFuture<T> searchServices(Class<T> type, String scope)
type - The class.public IFuture<IServiceProvider> getParent()
getParent in interface IServiceProvidergetParent in class BasicServiceContainerpublic IFuture<Collection<IServiceProvider>> getChildren()
getChildren in interface IServiceProvidergetChildren in class BasicServiceContainerpublic IRequiredServiceFetcher createServiceFetcher(String name)
createServiceFetcher in class BasicServiceContainerpublic String getType()
getType in interface IServiceProvidergetType in class BasicServiceContainerpublic IFuture<Void> start()
start in interface IServiceContainerstart in class BasicServiceContainerpublic String toString()
toString in class BasicServiceContainerCopyright © 2012. All Rights Reserved.