Package org.apache.felix.scr.component
Interface ExtComponentContext
-
- All Superinterfaces:
ComponentContext
@Deprecated(since="2021-05-27") public interface ExtComponentContext extends ComponentContext
Deprecated.The Apache Felix SCR API is deprecated, please use the OSGi component API instead.TheExtComponentContext
is a custom extension of the standard ComponentContext allowing to update the service registration properties of a component registered as a service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
setServiceProperties(Dictionary<String,?> properties)
Deprecated.Sets the service registration properties of the component registered as a service.-
Methods inherited from interface org.osgi.service.component.ComponentContext
disableComponent, enableComponent, getBundleContext, getComponentInstance, getProperties, getServiceReference, getUsingBundle, locateService, locateService, locateServices
-
-
-
-
Method Detail
-
setServiceProperties
void setServiceProperties(Dictionary<String,?> properties)
Deprecated.Sets the service registration properties of the component registered as a service. If the component is not registered as a service, this method has no effect.The
component.id
andcomponent.name
property are set by the Service Component Runtime and cannot be removed or replaced.- Parameters:
properties
- properties to update the default component properties with. If this isnull
or empty the default set of properties as defined in Section 112.6, Component Properties, are used as the service registration properties.- Throws:
IllegalStateException
- if this method is called for a Component Factory component
-
-