|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigHelper
ConfigHelper provide convenience methods for retrieving osgi
configs.
| Method Summary | |
|---|---|
org.osgi.service.cm.Configuration |
getConfiguration(org.osgi.service.component.ComponentContext ctx)
Returns the configuration for the component with the given context. |
org.osgi.service.cm.Configuration |
getConfiguration(String servicePid)
Returns the configuration for the given service pid. |
String |
getJcrConfigPath(org.osgi.service.cm.Configuration config)
Returns the path to a configuration stored in the repository or null
if the configuration is not stored in the repository. |
| Method Detail |
|---|
org.osgi.service.cm.Configuration getConfiguration(org.osgi.service.component.ComponentContext ctx)
throws IOException
getConfiguration(String)
ctx - the component context
null
IOException - if an error in the underlying config admin occurrs.
org.osgi.service.cm.Configuration getConfiguration(String servicePid)
throws IOException
servicePid - the pid of the service
IOException - if an error in the underlying config admin occurrs.String getJcrConfigPath(org.osgi.service.cm.Configuration config)
null
if the configuration is not stored in the repository.
config - the configuration to retrieve the path for
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||