use of com.sun.xml.ws.client.sei.StubAsyncHandler in project metro-jax-ws by eclipse-ee4j.
the class DatabindingImpl method initStubHandlers.
// Refactored from SEIStub
private void initStubHandlers() {
stubHandlers = new HashMap<>();
Map<ActionBasedOperationSignature, JavaMethodImpl> syncs = new HashMap<>();
// first fill in sychronized versions
for (JavaMethodImpl m : seiModel.getJavaMethods()) {
if (!m.getMEP().isAsync) {
StubHandler handler = new StubHandler(m, packetFactory);
syncs.put(m.getOperationSignature(), m);
stubHandlers.put(m.getMethod(), handler);
}
}
for (JavaMethodImpl jm : seiModel.getJavaMethods()) {
JavaMethodImpl sync = syncs.get(jm.getOperationSignature());
if (jm.getMEP() == MEP.ASYNC_CALLBACK || jm.getMEP() == MEP.ASYNC_POLL) {
Method m = jm.getMethod();
StubAsyncHandler handler = new StubAsyncHandler(jm, sync, packetFactory);
stubHandlers.put(m, handler);
}
}
}
Aggregations