@Deprecated public class ServicePersistenceManager extends AbstractPersistenceManager
axisConfig, configRegistry, fpm, omFactory, pf, WRITE_LOCK
Constructor and Description |
---|
ServicePersistenceManager(org.apache.axis2.engine.AxisConfiguration axisConfig)
Deprecated.
Constructor gets the axis config and calls the super constructor.
|
ServicePersistenceManager(org.apache.axis2.engine.AxisConfiguration axisConfig,
PersistenceFactory pf)
Deprecated.
Constructor gets the axis config and calls the super constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteService(org.apache.axis2.description.AxisService axisService)
Deprecated.
Deletes the registry resource of the specified service
|
void |
deleteServiceProperty(org.apache.axis2.description.AxisService service,
String propertyName)
Deprecated.
Set the given property to the service resource in the registry
|
void |
disengageModuleForService(org.apache.axis2.description.AxisModule module,
org.apache.axis2.description.AxisService service)
Deprecated.
Handle the dis-engagement of the module to service at the registry level
|
void |
engageModuleForService(org.apache.axis2.description.AxisModule module,
org.apache.axis2.description.AxisService service)
Deprecated.
Handle the engagement of the module to service at the registry level
|
org.apache.axiom.om.OMElement |
getService(org.apache.axis2.description.AxisService axisService)
Deprecated.
Returns the registry Resource for the specified AxisService
|
void |
handleExistingServiceInit(org.apache.axis2.description.AxisService axisService)
Deprecated.
Handle initialization of an already existing service in regsitry.
|
void |
handleNewServiceAddition(org.apache.axis2.description.AxisService axisService)
Deprecated.
When a new service is deployed, persist all it's contents (operations, policies etc.)
into the registry
|
void |
persistServicePolicy(String serviceGroupId,
org.apache.neethi.Policy policy,
String policyUuid,
String policyType,
String servicePath,
String engagementPath)
Deprecated.
|
void |
removeExposedTransports(String serviceName,
String transportProtocol)
Deprecated.
Removes an exposed transport from a given service.
|
void |
removeServiceParameter(org.apache.axis2.description.AxisService service,
org.apache.axis2.description.Parameter parameter)
Deprecated.
Remove the specified parameter from the given service
|
void |
setServiceProperty(org.apache.axis2.description.AxisService service,
String propertyName,
String propertyValue)
Deprecated.
Set the given property to the service resource in the registry
|
void |
updateServiceAssociation(org.apache.axis2.description.AxisService service,
String destinationPath,
String type)
Deprecated.
NOTE: This must not be used for adding module associations.
|
void |
updateServiceParameter(org.apache.axis2.description.AxisService service,
org.apache.axis2.description.Parameter parameter)
Deprecated.
Persist the given service parameter.
|
convertStreamToString, getCurrentFPM, getExistingAxisModule, getModuleFilePM, getProperty, getPropertyValues, getServiceGroupFilePM, handleException, handleException, handleExceptionWithRollback, handleModuleForAxisDescription, isGloballyEngaged, loadDocumentation, loadParameters, loadPolicies, persistPolicyToRegistry, removeParameter, removeResource, updateParameter, writeAxisDescription, writeParameters
public ServicePersistenceManager(org.apache.axis2.engine.AxisConfiguration axisConfig, PersistenceFactory pf) throws org.apache.axis2.AxisFault
axisConfig
- - AxisConfigurationpf
- PersistenceFactory instanceorg.apache.axis2.AxisFault
- - if the config registry is not foundpublic ServicePersistenceManager(org.apache.axis2.engine.AxisConfiguration axisConfig) throws org.apache.axis2.AxisFault
axisConfig
- - AxisConfigurationorg.apache.axis2.AxisFault
- - if the config registry is not foundpublic org.apache.axiom.om.OMElement getService(org.apache.axis2.description.AxisService axisService) throws Exception
axisService
- - AxisService instanceException
- - on registry transaction errorpublic void deleteService(org.apache.axis2.description.AxisService axisService) throws Exception
axisService
- - AxisService instanceException
- - on registry transaction errorpublic void handleNewServiceAddition(org.apache.axis2.description.AxisService axisService) throws Exception
axisService
- - AxisService instanceException
- - on errorpublic void handleExistingServiceInit(org.apache.axis2.description.AxisService axisService) throws Exception
axisService
- - AxisService instanceException
- - on errorpublic void engageModuleForService(org.apache.axis2.description.AxisModule module, org.apache.axis2.description.AxisService service) throws Exception
module
- - AxisModule instanceservice
- - AxisService instanceException
- - on errorpublic void disengageModuleForService(org.apache.axis2.description.AxisModule module, org.apache.axis2.description.AxisService service) throws Exception
module
- - AxisModule instanceservice
- - AxisService instanceException
- - on errorpublic void removeServiceParameter(org.apache.axis2.description.AxisService service, org.apache.axis2.description.Parameter parameter) throws Exception
service
- - AxisService instanceparameter
- - parameter to removeException
- - on errorpublic void setServiceProperty(org.apache.axis2.description.AxisService service, String propertyName, String propertyValue) throws Exception
service
- - AxisService instancepropertyName
- - name of the property to setpropertyValue
- - value to setException
- - on errorpublic void deleteServiceProperty(org.apache.axis2.description.AxisService service, String propertyName) throws Exception
service
- - AxisService instancepropertyName
- - name of the property to deleteException
- - on errorpublic void updateServiceAssociation(org.apache.axis2.description.AxisService service, String destinationPath, String type) throws PersistenceException
service
- destinationPath
- type
- PersistenceException
public void updateServiceParameter(org.apache.axis2.description.AxisService service, org.apache.axis2.description.Parameter parameter) throws Exception
service
- - AxisService instanceparameter
- - parameter to persistException
- - on registry call errorspublic void removeExposedTransports(String serviceName, String transportProtocol) throws Exception
serviceName
- - Name of the service where new transport to be removed.transportProtocol
- - Name of the transport to be removed.Exception
- - on errorpublic void persistServicePolicy(String serviceGroupId, org.apache.neethi.Policy policy, String policyUuid, String policyType, String servicePath, String engagementPath) throws Exception
serviceGroupId
- policy
- policyUuid
- policyType
- servicePath
- engagementPath
- The xpath to where the policy is applied. This could be serviceXPath, or operationPath etc.Exception
Copyright © 2016 WSO2 Inc. All rights reserved.