コード例 #1
0
 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;
 }
コード例 #2
0
 public boolean inService(String contextID) throws PolicyContextException {
   boolean inService = false;
   JBossPolicyConfiguration pc = policyConfigMap.get(contextID);
   if (pc != null) inService = pc.inService();
   return inService;
 }