public PolicyConfiguration getPolicyConfiguration(String contextID, boolean remove) throws PolicyContextException { JBossPolicyConfiguration pc = policyConfigMap.get(contextID); if (pc == null) { StateMachine sm = (StateMachine) configStateMachine.clone(); pc = new JBossPolicyConfiguration(contextID, policy, sm); policyConfigMap.put(contextID, pc); } pc.initPolicyConfiguration(remove); return pc; }
public boolean inService(String contextID) throws PolicyContextException { boolean inService = false; JBossPolicyConfiguration pc = policyConfigMap.get(contextID); if (pc != null) inService = pc.inService(); return inService; }