Search in sources :

Example 1 with StubAsyncHandler

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);
        }
    }
}
Also used : JavaMethodImpl(com.sun.xml.ws.model.JavaMethodImpl) HashMap(java.util.HashMap) StubAsyncHandler(com.sun.xml.ws.client.sei.StubAsyncHandler) StubHandler(com.sun.xml.ws.client.sei.StubHandler) Method(java.lang.reflect.Method) ActionBasedOperationSignature(com.sun.xml.ws.wsdl.ActionBasedOperationSignature)

Aggregations

StubAsyncHandler (com.sun.xml.ws.client.sei.StubAsyncHandler)1 StubHandler (com.sun.xml.ws.client.sei.StubHandler)1 JavaMethodImpl (com.sun.xml.ws.model.JavaMethodImpl)1 ActionBasedOperationSignature (com.sun.xml.ws.wsdl.ActionBasedOperationSignature)1 Method (java.lang.reflect.Method)1 HashMap (java.util.HashMap)1