Example #1
0
 protected void initialize() throws ConfigurationException, XMLGeneralException {
   policyLoader = PolicyLoaderRegistry.getDataStore(this);
   contextFactory = ContextFactoryRegistry.getContextFactory(this);
   cacheMgr = CacheManager.getInstance(this);
   AttributeRetrieverRegistry.getInstance(this);
   status.updateProperty(KEY_RUN_STATUS, STATUS_RUN_INITIALIZED);
 }
Example #2
0
 private void shutdownPDP() {
   status.updateProperty(KEY_RUN_STATUS, STATUS_RUN_NOTRUN);
   cacheMgr.removeAll();
   policyLoader.shutdown();
   AttributeRetrieverRegistry.removeInstance(this);
   CacheManager.removeInstance(this);
   ContextFactoryRegistry.removeContextFactory(this);
   PolicyLoaderRegistry.removeDataStore(this);
   pdpRegistry.remove(domain);
 }