public class InternalPolicyDeploymentService extends Object implements TransactionalPolicyDeploymentService
| Constructor and Description |
|---|
InternalPolicyDeploymentService(PolicyFactory policyFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(PolicyDefinition policyDefinition,
Api api)
Deploys the policy to the specified API implementation.
|
void |
revertPolicy(PolicyDefinition policy,
Api api)
Indicates that the version currently applied has become the official configuration.
|
void |
undeploy(PolicyDefinition policyDefinition,
Api api)
Undeploys the given policy from the specified API implementation.
|
void |
update(PolicyDefinition oldPolicy,
PolicyDefinition updatedPolicy,
Api api)
Tries to update the configuration of the policy.
|
void |
updateOrder(PolicyDefinition oldPolicy,
PolicyDefinition updatedPolicy,
Api api)
Tries to update the order of the policy.
|
public InternalPolicyDeploymentService(PolicyFactory policyFactory)
public void deploy(PolicyDefinition policyDefinition, Api api)
TransactionalPolicyDeploymentServicedeploy in interface TransactionalPolicyDeploymentServicepolicyDefinition - policy to deployapi - where to deploypublic void updateOrder(PolicyDefinition oldPolicy, PolicyDefinition updatedPolicy, Api api)
TransactionalPolicyDeploymentServiceupdateOrder in interface TransactionalPolicyDeploymentServiceoldPolicy - the policyDefinition before the order changeupdatedPolicy - the policyDefinition after the order changeapi - the api to which the policy will be deployedpublic void update(PolicyDefinition oldPolicy, PolicyDefinition updatedPolicy, Api api)
TransactionalPolicyDeploymentServiceupdate in interface TransactionalPolicyDeploymentServiceoldPolicy - the policyDefinition before the configuration changeupdatedPolicy - the policyDefinition after the configuration changeapi - the api to which the policy will be deployedpublic void revertPolicy(PolicyDefinition policy, Api api)
TransactionalPolicyDeploymentServicerevertPolicy in interface TransactionalPolicyDeploymentServicepolicy - definition of the applied policy.api - the api to which the policy will be deployedpublic void undeploy(PolicyDefinition policyDefinition, Api api)
TransactionalPolicyDeploymentServiceundeploy in interface TransactionalPolicyDeploymentServicepolicyDefinition - the policy to undeployapi - from where to undeployCopyright © 2014–2025 MuleSoft, Inc.. All rights reserved.