Hi,
I'm trying to figure-out which is the best option to configure a bean
instantiated via OSGi Blueprint and I have a some question for which I
haven't found the answer:

1) is there any way to reference to the cm:property-placeholder's
persistent-id? So I can write something like: 

    <cm:property-placeholder persistent-id="my.service.pid"
update-strategy="reload">
    </cm:property-placeholder>

    <bean id="my.bean.id" class="my.bean.Class">
        <property name="servicePid" value="${persistent-id}"/>
    </bean>

2) is there any way to have the ConfigAdmin to call Class.update(Map ...)
when the bean is instantiated? 

    <cm:property-placeholder persistent-id="my.service.pid"
update-strategy="reload">
    </cm:property-placeholder>

    <bean id="my.bean.id" class="my.bean.Class">        
    </bean>

    class my.bean.Class {
        public void update(Map configuration) {
            ....
        }
    }

thx - Luca




--
View this message in context: 
http://karaf.922171.n3.nabble.com/ConfigAdmin-and-OSGi-Blueprint-tp4030097.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to