You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Cristiano Gavião (JIRA)" <ji...@apache.org> on 2018/10/04 16:55:00 UTC
[jira] [Comment Edited] (FELIX-5951) Automatically add
ConfigurationAdmin service as a shell command
[ https://issues.apache.org/jira/browse/FELIX-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16638520#comment-16638520 ]
Cristiano Gavião edited comment on FELIX-5951 at 10/4/18 4:54 PM:
------------------------------------------------------------------
That certainly will be really helpful in order to ensure if Configurator is doing its job properly ;)(y)
Right now I'm trying to understand why felix.logback is not changing the loglevel that I've setup using configurator.initial file....
thanks
was (Author: cvgaviao):
That certainly will be really helpful in order to ensure if Configurator is doing its job properly ;)(y)
thanks
> Automatically add ConfigurationAdmin service as a shell command
> ---------------------------------------------------------------
>
> Key: FELIX-5951
> URL: https://issues.apache.org/jira/browse/FELIX-5951
> Project: Felix
> Issue Type: New Feature
> Components: Configuration Admin
> Reporter: Raymond Augé
> Assignee: Raymond Augé
> Priority: Minor
> Fix For: configadmin-1.9.10
>
>
> I'd like to propose adding the service properties:
> {{osgi.command.scope = 'cm'}} and
> {{osgi.command.function = ConfigurationAdmin.class.getDeclaredMethods() }} to the ConfigurationAdmin service.
> Here are some examples that this would enable:
> {code:bash}
> # store a pid for reuse
> g! pid = "foo"
> ## CM - get configurations
> g! cm:listconfigurations "(service.pid=$pid)"
> ## CM - get single configuration
> g! config = (cm:listconfigurations "(service.pid=$pid)") 0
> ## CM - create configuration
> g! config = cm:getconfiguration $pid "?"
> ## CM - delete configuration
> g! $config delete
> ## CM - list configuration properties
> g! $config properties
> ## CM - update configuration from existing properties
> g! props = ($config properties)
> g! $props put "foo" 20
> g! $config update $props
> ## CM - update configuration with new properties
> g! props = (new java.util.Hashtable)
> g! $props put "foo" 20
> g! $config update $props
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)