Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2006, Red Hat Middleware LLC, and individual contributors
   * as indicated by the @author tags. 
   * See the copyright.txt in the distribution for a full listing 
   * of individual contributors.
   * This copyrighted material is made available to anyone wishing to use,
   * modify, copy, or redistribute it subject to the terms and conditions
   * of the GNU Lesser General Public License, v. 2.1.
  * This program is distributed in the hope that it will be useful, but WITHOUT A
  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
  * You should have received a copy of the GNU Lesser General Public License,
  * v.2.1 along with this distribution; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  * MA  02110-1301, USA.
  * 
  * (C) 2005-2006,
  * @author JBoss Inc.
  */
 package com.arjuna.webservices11.wsarjtx.processors;
 
 import  org.jboss.ws.api.addressing.MAP;

The Terminator Coordinator processor.

Author(s):
kevin
 
 {
    
The coordinator processor.
 
     private static final TerminationParticipantProcessor PROCESSOR = new TerminationParticipantProcessor() ;

    
Get the processor singleton.

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

    
Handle a cancelled response.

Parameters:
cancelled The cancelled notification.
map The addressing context.
arjunaContext The arjuna context.
 
     public void handleCancelled(final NotificationType cancelledfinal MAP map,
         final ArjunaContext arjunaContext)
     {
         handleCallbacks(new CallbackExecutorAdapter() {
             public void execute(final Callback callback) {
                 ((TerminationParticipantCallback)callback).cancelled(cancelledmaparjunaContext) ;
             }
         }, getIDs(arjunaContext)) ;
     }

    
Handle a closed response.

Parameters:
closed The closed notification.
map The addressing context.
arjunaContext The arjuna context.
 
     public void handleClosed(final NotificationType closedfinal MAP map,
         final ArjunaContext arjunaContext)
     {
         handleCallbacks(new CallbackExecutorAdapter() {
             public void execute(final Callback callback) {
                 ((TerminationParticipantCallback)callback).closed(closedmaparjunaContext) ;
             }
         }, getIDs(arjunaContext)) ;
     }

    
Handle a completed response.

Parameters:
completed The completed notification.
map The addressing context.
arjunaContext The arjuna context.
 
     public void handleCompleted(final NotificationType completedfinal MAP map,
         final ArjunaContext arjunaContext)
     {
         handleCallbacks(new CallbackExecutorAdapter() {
             public void execute(final Callback callback) {
                 ((TerminationParticipantCallback)callback).completed(completedmaparjunaContext) ;
             }
         }, getIDs(arjunaContext)) ;
     }

    
Handle a faulted response.

Parameters:
faulted The faulted notification.
map The addressing context.
arjunaContext The arjuna context.
    public void handleFaulted(final NotificationType faultedfinal MAP map,
        final ArjunaContext arjunaContext)
    {
            public void execute(final Callback callback) {
                ((TerminationParticipantCallback)callback).faulted(faultedmaparjunaContext) ;
            }
        }, 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)
    {
            public void execute(final Callback callback) {
                ((TerminationParticipantCallback)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 TerminationParticipantCallback callback)
    {
        register(instanceIdentifiercallback) ;
    }
New to GrepCode? Check out our FAQ X