public interface ComponentContext
Service component context interface.
The service provider required to obtain the configuration information and service components of the service component.
Modifier and Type | Method and Description |
---|---|
<T> T |
getConfig(java.lang.Class<T> clz)
Gets the corresponding service component configuration information according to the configuration type of the service component.
|
java.lang.String |
getProperty(java.lang.String propertyName)
Obtain the corresponding attribute according to the service component attribute name.
|
<T> T |
getProvider(java.lang.Class<T> clz, java.util.List<ProviderSelector> selectors)
The service providers needed to get the service component.
|
<T> java.util.List<T> |
getProviders(java.lang.Class<T> clz)
The list of service providers needed to get the service component.
|
<T> T getConfig(java.lang.Class<T> clz)
Gets the corresponding service component configuration information according to the configuration type of the service component.
clz
- the service component configuration type.<T> java.util.List<T> getProviders(java.lang.Class<T> clz)
The list of service providers needed to get the service component.
clz
- Service provider type.<T> T getProvider(java.lang.Class<T> clz, java.util.List<ProviderSelector> selectors)
The service providers needed to get the service component.
clz
- Service provider type.selectors
- Service provider selector lists.java.lang.String getProperty(java.lang.String propertyName)
Obtain the corresponding attribute according to the service component attribute name.
propertyName
- The property name