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); }
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); }