public abstract class AbstractFieldInjectionComponent extends AbstractComponent
This component discovers the OSGi MetaType XML or OSGi Declarative Services XML files and uses those XML files to determine which fields require injection from with property values in the Config Admin PID of the @Component.
As a component developer, you typically need to annotate the fields in your @Component object with
| Constructor and Description |
|---|
AbstractFieldInjectionComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(Map<String,?> configuration) |
void |
deactivate() |
void |
modified(Map<String,?> configuration) |
protected void |
onActivate()
Strategy pattern for after this component has been activated
|
protected void |
onConfigured()
Strategy pattern for after this component has been configured (either on @Activate or @Modified)
|
protected void |
onDeactivate()
Strategy pattern for after this component has been deactivated
|
protected void |
onModified()
Strategy pattern for after this component has been modified
|
activateComponent, assertValid, deactivateComponent, isValidprotected void onActivate()
throws Exception
Exceptionprotected void onModified()
throws Exception
Exceptionprotected void onDeactivate()
throws Exception
ExceptionCopyright © 2011–2014 Red Hat. All rights reserved.