Does anyone see why this would not be working?
@Reference(
cardinality = ReferenceCardinality.MULTIPLE,
name = "MBean",
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
target =
"(&(jmx.objectname=*)(objectClass=*MBean)(!(objectClass=javax.management.DynamicMBean)))"
)
protected void addMBean(ServiceReference<?> serviceReference) { .. }
The XML generated is:
<reference
name="MBean"
cardinality="0..n"
policy="dynamic"
interface="org.osgi.framework.ServiceReference"
target="(&(jmx.objectname=*)(objectClass=*MBean)(!(objectClass=javax.management.DynamicMBean)))"
bind="addMBean"
unbind="removeMBean"
policy-option="greedy"
/>
Shouldn't this work?
--
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
(@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
(@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev