Package org.apache.axis2.engine
Class DependencyManager
java.lang.Object
org.apache.axis2.engine.DependencyManager
If the service implementation has an init method with 1 or 2 message context as its parameters, then
the DependencyManager calls the init method with appropriate parameters.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddestroyServiceObject(ServiceContext serviceContext) Notify a service object that it's on death row.static voidinitService(ServiceGroupContext serviceGroupContext) To init all the services in application scopestatic voidinitServiceClass(Object obj, ServiceContext serviceContext) Deprecated.please use initServiceObject()static voidinitServiceObject(Object obj, ServiceContext serviceContext) Initialize a new service object.protected static ObjectmakeNewServiceObject(AxisService service) protected static voidprotected static AbstractMessageReceiver.ThreadContextDescriptorsetThreadContext(AxisService service)
-
Field Details
-
SERVICE_INIT_METHOD
- See Also:
-
SERVICE_DESTROY_METHOD
- See Also:
-
-
Constructor Details
-
DependencyManager
public DependencyManager()
-
-
Method Details
-
initServiceClass
Deprecated.please use initServiceObject()Initialize a new service object. Essentially, check to see if the object wants to receive an init() call - if so, call it.- Parameters:
obj- the service objectserviceContext- the active ServiceContext- Throws:
AxisFault- if there's a problem initializing
-
initServiceObject
Initialize a new service object. Essentially, check to see if the object wants to receive an init() call - if so, call it.- Parameters:
obj- the service objectserviceContext- the active ServiceContext- Throws:
AxisFault- if there's a problem initializing
-
initService
To init all the services in application scope- Parameters:
serviceGroupContext- the ServiceGroupContext from which to extract all the services- Throws:
AxisFault- if there's a problem initializing
-
makeNewServiceObject
- Throws:
AxisFault
-
destroyServiceObject
Notify a service object that it's on death row.- Parameters:
serviceContext- the active ServiceContext
-
setThreadContext
protected static AbstractMessageReceiver.ThreadContextDescriptor setThreadContext(AxisService service) -
restoreThreadContext
-