If you want to inject an attribute of the dependent target sevice then I would have a syntax like:
| <mbean code="org.jboss.test.jmx.proxy.ProxyTests"
| name="jboss.test:name=ProxyTestsAttribute">
| <depends optional-attribute-name="xxx"
| proxy-type="attribute"
| attributeName="SomeAttr">:name=ConfigService</depends>
| </mbean>
|
No handler is needed to do this.
The handler attribute type should just be some interface implementation that allows the attribute value to be obtained from the target service in whatever means it wants:
| interface DependentAttributeHandler
| {
| Object getAttribute(ObjectName targetService, String key);
| }
|
I would be interested in seeing such a contribution.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880779#3880779
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880779
|