1 package org.apache.axis2.context; 2 3 20 21 import org.apache.axis2.description.OperationDescription; 22 import org.apache.axis2.description.ServiceDescription; 23 24 import javax.xml.namespace.QName ; 25 26 27 public class ServiceContext extends AbstractContext { 28 private ServiceDescription serviceConfig; 29 30 private String serviceInstanceID; 31 32 public ServiceContext(ServiceDescription serviceConfig, ConfigurationContext engineContext) { 33 super(engineContext); 34 this.serviceConfig = serviceConfig; 35 36 37 } 38 39 40 43 public String getServiceInstanceID() { 44 return serviceInstanceID; 45 } 46 47 50 public void setServiceInstanceID(String serviceInstanceID) { 51 this.serviceInstanceID = serviceInstanceID; 52 } 53 54 57 public ServiceDescription getServiceConfig() { 58 return serviceConfig; 59 } 60 61 public ConfigurationContext getEngineContext() { 62 return (ConfigurationContext) parent; 63 } 64 65 public OperationContext createOperationContext(QName name) { 66 OperationDescription axisOp = serviceConfig.getOperation(name); 67 return new OperationContext(axisOp, this); 68 } 69 } 70 | Popular Tags |