Community
Participate
Working Groups
For annotated classes, there are cases where the implementation needs addressability to underyling management implementations. For example, there is a need for a managed resource to be able to access it's WSDM EPR. In the current implementation, each management techonolgy (JMX, WSDM, etc.) corresponds to an existing binding implementation. There is also a mechanism that allows the annotation framework to bind references within an implementation class. This mechanism could be used to wire in access to the set of binding technologies that the annotated class is exposed thruough. Each of these binding types could then be cast to technology-specific interfaces.
This should require a fairly low level of effort.
This capability is already supported using the @ManagedFrameworkAutowire annotation. An example of how to gain addressability to the WSDMBinding (and hence the WSResource implementation corresponding to a particular object) can be found in the org.eclipse.cosmos.dc.sample.components.source.WefSource example. It basically comes down to the following: @ManagedResource public class MyClass { @ManagedFrameworkAutowire(name="WSDM") private Binding wsdmBinding; public void setWsdmBinding(Binding wsdmBinding){ this.wsdmBinding = wsdmBinding; } public boolean someMethod() throws Exception { Object consumerObject = wsdmBinding.getBindingForObject(this); if(consumerObject != null && consumerObject instanceof WsResource){ EndpointReference consumer = ((WsResource)consumerObject).getEndpointReference(); for(Element target : targets){ etc...
We have a dependency on Muse to provide the work around for the WS-Addressing so that capabilities can accept requests from "vanilla", e.g. non-statefull clients
We will need to ensure this works with some test cases. CMDBf interop with non-cosmos clients will simply fail.
Has @ManagedFrameworkAutowire annotation been implemented? I guess QA should find similar implementations (given above) across COSMOS that pertain to addressability to WSDM binding.
closing to cleanup bugzilla