/** {@inheritDoc} */ @Override public boolean supportsIdentifier(ConfigurationSourceIdentifier configurationSourceIdentifier) { try { File file = getConfigurationFile( configurationSourceIdentifier.getReferenceClass(), getResourceName(configurationSourceIdentifier)); return file.exists(); } catch (ConfigurationException exc) { return false; } }
/** {@inheritDoc} */ @Override public void runPostProcessAction(ConfigurationSourceIdentifier configurationSourceIdentifier) { super.runPostProcessAction(configurationSourceIdentifier); Class<?> referenceClass = configurationSourceIdentifier.getReferenceClass(); String resourceName = getResourceName(configurationSourceIdentifier); try { File confFile = getConfigurationFile(referenceClass, resourceName); getFileWatchListener().addFile(confFile, configurationSourceIdentifier); } catch (ConfigurationException exc) { logger.warn("Could not add file to watch list: " + exc.getMessage()); if (logger.isTraceEnabled()) logger.trace(exc.getMessage(), exc); } }