use of io.gravitee.gateway.handlers.api.policy.api.ApiPolicyChainResolver in project gravitee-gateway by gravitee-io.
the class ApiReactorHandler method afterPropertiesSet.
@Override
public void afterPropertiesSet() {
contextPath = reactable().contextPath() + '/';
apiPolicyResolver = new ApiPolicyChainResolver();
PolicyChainResolver securityPolicyResolver = new SecurityPolicyChainResolver();
PolicyChainResolver planPolicyResolver = new PlanPolicyChainResolver();
policyResolvers = new ArrayList<PolicyChainResolver>() {
{
applicationContext.getAutowireCapableBeanFactory().autowireBean(securityPolicyResolver);
applicationContext.getAutowireCapableBeanFactory().autowireBean(planPolicyResolver);
applicationContext.getAutowireCapableBeanFactory().autowireBean(apiPolicyResolver);
add(securityPolicyResolver);
add(planPolicyResolver);
add(apiPolicyResolver);
}
};
}
Aggregations