org.apache.axis2.context
Class ServiceContext

java.lang.Object
  extended by org.apache.axis2.context.AbstractContext
      extended by org.apache.axis2.context.ServiceContext

public class ServiceContext
extends AbstractContext

Well this is never clearly defined, what it does or the life-cycle. So do NOT use this as it might not live up to your expectation.


Field Summary
static String SERVICE_OBJECT
           
 
Fields inherited from class org.apache.axis2.context.AbstractContext
COPY_PROPERTIES, lastTouchedTime, parent, properties
 
Constructor Summary
ServiceContext(AxisService serviceConfig, ServiceGroupContext serviceGroupContext)
           
 
Method Summary
 OperationContext createOperationContext(QName name)
           
 AxisService getAxisService()
           
 ConfigurationContext getConfigurationContext()
           
 EndpointReference getMyEPR()
           
 EndpointReference getMyEPR(String transport)
          To get the ERP for a given service , if the transport is present and not running then it will add as a listener to ListenerManager , there it will init that and start the listener , and finally ask the EPR from transport for a given service
 ServiceGroupContext getServiceGroupContext()
           
 EndpointReference getTargetEPR()
           
 void setMyEPR(EndpointReference myEPR)
           
 void setTargetEPR(EndpointReference targetEPR)
           
 
Methods inherited from class org.apache.axis2.context.AbstractContext
getLastTouchedTime, getParent, getProperties, getProperty, setParent, setProperties, setProperty, touch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_OBJECT

public static final String SERVICE_OBJECT
See Also:
Constant Field Values
Constructor Detail

ServiceContext

public ServiceContext(AxisService serviceConfig,
                      ServiceGroupContext serviceGroupContext)
Method Detail

createOperationContext

public OperationContext createOperationContext(QName name)

getAxisService

public AxisService getAxisService()

getConfigurationContext

public ConfigurationContext getConfigurationContext()

getServiceGroupContext

public ServiceGroupContext getServiceGroupContext()

getMyEPR

public EndpointReference getMyEPR(String transport)
                           throws AxisFault
To get the ERP for a given service , if the transport is present and not running then it will add as a listener to ListenerManager , there it will init that and start the listener , and finally ask the EPR from transport for a given service

Parameters:
transport - : Name of the transport
Throws:
AxisFault

getTargetEPR

public EndpointReference getTargetEPR()

setTargetEPR

public void setTargetEPR(EndpointReference targetEPR)

getMyEPR

public EndpointReference getMyEPR()

setMyEPR

public void setMyEPR(EndpointReference myEPR)