Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.arjuna.webservices11.wsat.processors;
 
 import  org.jboss.ws.api.addressing.MAP;
The Completion Initiator processor.

Author(s):
kevin
{
    
The initiator singleton.
    private static final CompletionInitiatorProcessor PROCESSOR = new CompletionInitiatorProcessor() ;

    
Get the processor singleton.

Returns:
The singleton.
    public static CompletionInitiatorProcessor getProcessor()
    {
        return ;
    }

    
Handle an aborted response.

Parameters:
aborted The aborted notification.
map The addressing context.
arjunaContext The arjuna context.
    public void handleAborted(final Notification abortedfinal MAP map,
        final ArjunaContext arjunaContext)
    {
        handleCallbacks(new CallbackExecutorAdapter() {
            public void execute(final Callback callback) {
                ((CompletionInitiatorCallback)callback).aborted(abortedmaparjunaContext) ;
            }
        }, getIDs(arjunaContext)) ;
    }

    
Handle a committed response.

Parameters:
committed The committed notification.
map The addressing context.
arjunaContext The arjuna context.
    public void handleCommitted(final Notification committedfinal MAP map,
        final ArjunaContext arjunaContext)
    {
        handleCallbacks(new CallbackExecutorAdapter() {
            public void execute(final Callback callback) {
                ((CompletionInitiatorCallback)callback).committed(committedmaparjunaContext) ;
            }
        }, getIDs(arjunaContext)) ;
    }

    
Handle a SOAP fault response.

Parameters:
soapFault The SOAP fault.
map The addressing context.
arjunaContext The arjuna context.
    public void handleSoapFault(final SoapFault soapFaultfinal MAP map,
        final ArjunaContext arjunaContext)
    {
        handleCallbacks(new CallbackExecutorAdapter() {
            public void execute(final Callback callback) {
                ((CompletionInitiatorCallback)callback).soapFault(soapFaultmaparjunaContext) ;
            }
        }, getIDs(arjunaContext)) ;
    }

    
Register a callback for the specific instance identifier.

Parameters:
instanceIdentifier The instance identifier.
callback The callback for the response.
    public void registerCallback(final String instanceIdentifierfinal CompletionInitiatorCallback callback)
    {
        register(instanceIdentifiercallback) ;
    }
New to GrepCode? Check out our FAQ X