Class PolicyAutoConfiguration
java.lang.Object
com.broadleafcommerce.data.tracking.core.policy.autoconfigure.PolicyAutoConfiguration
@Configuration
@ConditionalOnProperty(value="broadleaf.common.policy.validation.enforce",
matchIfMissing=true)
@Import(CrudPolicyConfiguration.class)
@AutoConfigureBefore(DataTrackingCacheAutoConfiguration.class)
public class PolicyAutoConfiguration
extends Object
Setup the bean involved in policy validation and enforcement. This feature can be disabled
altogether by setting the 'broadleaf.common.policy.validation.enforce' property to false.
- Author:
- Jeff Fischer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpolicyAspect
(PolicyAspectProcessor processor) policyAspectProcessor
(PolicyEvaluator policyEvaluator) policyEvaluator
(PolicyUtils policyUtils)
-
Constructor Details
-
PolicyAutoConfiguration
public PolicyAutoConfiguration()
-
-
Method Details
-
policyAspectProcessor
@Bean @ConditionalOnMissingBean public PolicyAspectProcessor policyAspectProcessor(PolicyEvaluator policyEvaluator) -
policyEvaluator
-
policyExceptionAdvisor
-
policyAspect
@Bean @ConditionalOnMissingBean(name="policyAspect") public DefaultPolicyAspect policyAspect(PolicyAspectProcessor processor)
-