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(java.util.Map<java.lang.String,?> configuration) |
void |
deactivate() |
void |
modified(java.util.Map<java.lang.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, isValid
public void activate(java.util.Map<java.lang.String,?> configuration) throws java.lang.Exception
java.lang.Exception
public void modified(java.util.Map<java.lang.String,?> configuration) throws java.lang.Exception
java.lang.Exception
public void deactivate() throws java.lang.Exception
java.lang.Exception
protected void onActivate() throws java.lang.Exception
java.lang.Exception
protected void onModified() throws java.lang.Exception
java.lang.Exception
protected void onDeactivate() throws java.lang.Exception
java.lang.Exception
protected void onConfigured() throws java.lang.Exception
java.lang.Exception
Copyright © 2011-2014 Red Hat. All Rights Reserved.