mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Minor refactoring on Policy Eval service comp
This commit is contained in:
parent
84918f58c7
commit
21bc812281
@ -23,7 +23,7 @@ import org.apache.commons.logging.LogFactory;
|
||||
import org.osgi.service.component.ComponentContext;
|
||||
import org.wso2.carbon.policy.mgt.common.PolicyEvaluationPoint;
|
||||
import org.wso2.carbon.policy.mgt.core.PolicyManagerService;
|
||||
import org.wso2.carbon.simple.policy.decision.point.PolicyEvaluationServiceImpl;
|
||||
import org.wso2.carbon.simple.policy.decision.point.SimpleEvaluationPoint;
|
||||
import org.wso2.carbon.user.core.service.RealmService;
|
||||
|
||||
/**
|
||||
@ -52,8 +52,9 @@ public class PolicyEvaluationServiceComponent {
|
||||
}
|
||||
|
||||
try {
|
||||
//TODO: fetch PEP class from config
|
||||
componentContext.getBundleContext().registerService(PolicyEvaluationPoint.class.getName(),
|
||||
new PolicyEvaluationServiceImpl(), null);
|
||||
new SimpleEvaluationPoint(), null);
|
||||
} catch (Throwable t) {
|
||||
log.error("Error occurred while initializing the simple policy evaluation bundle");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user