CounterRepository does not register to the bus when it is configured in blueprint in the same way it is configured in spring, as
<bean id="cr" class="org.apache.cxf.management.counters.CounterRepository">
<property name="bus" ref="mybus" />
The cause of this issue is that spring invokes CounterRepository's PostConst non-public method registerToBus, whereas blueprint can't.
To make both work without any change to the configuration, we should remove the annotation and simply call this register method from the setBus method.