/** * The registry is read once - when this class is instantiated. */ private ValidationRegistryReader() { super(); try { _validators = new HashMap(); _indexedValidators = new HashMap(); _defaultEnabledValidators = new HashSet(); // Read the registry and build a map of validators. The key into // the map is the IValidator instance and the value is the ValidatorMetaData // which describes the IValidator. readRegistry(); // Once all of the validators have been read, the caches of the // validators need to be updated. buildCache(); } catch (Exception exc) { Logger logger = ValidationPlugin.getPlugin().getMsgLogger(); if (logger.isLoggingLevel(Level.SEVERE)) { LogEntry entry = ValidationPlugin.getLogEntry(); entry.setSourceID("ValidationRegistryReader()"); //$NON-NLS-1$ entry.setTargetException(exc); logger.write(Level.SEVERE, entry); } } }