1 10 11 package org.mule.providers.soap.axis; 12 13 import org.apache.axis.handlers.soap.SOAPService; 14 import org.apache.commons.logging.Log; 15 import org.apache.commons.logging.LogFactory; 16 import org.mule.impl.InitialisationCallback; 17 import org.mule.umo.lifecycle.InitialisationException; 18 19 26 public class AxisInitialisationCallback implements InitialisationCallback 27 { 28 31 protected static Log logger = LogFactory.getLog(AxisInitialisationCallback.class); 32 33 private SOAPService service; 34 private boolean invoked = false; 35 36 public AxisInitialisationCallback(SOAPService service) 37 { 38 this.service = service; 39 } 40 41 public void initialise(Object component) throws InitialisationException 42 { 43 if (invoked) 45 { 46 return; 47 } 48 if (component instanceof AxisInitialisable) 49 { 50 if (logger.isDebugEnabled()) 51 { 52 logger.debug("Calling axis initialisation for component: " + component.getClass().getName()); 53 } 54 ((AxisInitialisable)component).initialise(service); 55 } 56 invoked = true; 57 } 58 } 59 | Popular Tags |