public class DefaultPolicyManager extends Object implements PolicyManager, org.mule.runtime.api.lifecycle.Initialisable
PolicyManager.| Constructor and Description |
|---|
DefaultPolicyManager() |
| Modifier and Type | Method and Description |
|---|---|
OperationPolicy |
createOperationPolicy(org.mule.runtime.api.component.location.ComponentLocation operationLocation,
Event event,
Map<String,Object> operationParameters,
OperationExecutionFunction operationExecutionFunction)
Creates a policy to be applied to an operation.
|
SourcePolicy |
createSourcePolicyInstance(org.mule.runtime.api.component.location.ComponentLocation sourceLocation,
Event sourceEvent,
Processor flowExecutionProcessor,
MessageSourceResponseParametersProcessor messageSourceResponseParametersProcessor)
Creates a policy to be applied to a source.
|
void |
disposePoliciesResources(String executionIdentifier)
Disposes any resource associated to the given
executionIdentifier. |
void |
initialise() |
void |
setMuleContext(MuleContext muleContext) |
public SourcePolicy createSourcePolicyInstance(org.mule.runtime.api.component.location.ComponentLocation sourceLocation, Event sourceEvent, Processor flowExecutionProcessor, MessageSourceResponseParametersProcessor messageSourceResponseParametersProcessor)
PolicyManagersourceIdentifier to find specific
policies applied to that source and also the sourceEvent which will be used to extract data to match against the policies
pointcuts.createSourcePolicyInstance in interface PolicyManagersourceLocation - the source location.sourceEvent - the event generated from the source.flowExecutionProcessor - the processor that executes the flow.messageSourceResponseParametersProcessor - processor to generate the response and error response parameters of the source.SourcePolicy associated to that source.public OperationPolicy createOperationPolicy(org.mule.runtime.api.component.location.ComponentLocation operationLocation, Event event, Map<String,Object> operationParameters, OperationExecutionFunction operationExecutionFunction)
PolicyManageroperationIdentifier to find specific
policies applied to that operation and also the operationParameters which will be used to extract data to match against the policies
pointcuts.createOperationPolicy in interface PolicyManageroperationLocation - component location of the operation.event - the event used to execute the operation.operationParameters - the set of parameters to use to execute the operation.operationExecutionFunction - the function that executes the operation.OperationPolicy associated to that source.public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void disposePoliciesResources(String executionIdentifier)
PolicyManagerexecutionIdentifier. Any exception generated by this method will be
just logged and discarded.disposePoliciesResources in interface PolicyManagerexecutionIdentifier - identifier used for previous policies executions.public void setMuleContext(MuleContext muleContext)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.