public void registerRule(Auditable rule) {
    _lock.writeLock().lock();
    try {
      _auditMap.put(rule.getName(), new HashMap<>());
    } finally {
      _lock.writeLock().unlock();
    }
  }
public void registerRule(Auditable rule) {
    _lock.writeLock().lock();
    try {
      _auditMap.put(rule.getName(), new HashMap<>());
    } finally {
      _lock.writeLock().unlock();
    }
  }
public void registerRule ( Auditable rule ) { _lock . writeLock ( ) . lock ( ) ; try { _auditMap . put ( rule . getName ( ) , new HashMap <> ( ) ) ; } finally { _lock . writeLock ( ) . unlock ( ) ; } }
Registers a rule to be audited.
@param rule  and {@link Auditable} rule
Registers a rule to be audited .