Package br.com.caelum.brutauth.util

Source Code of br.com.caelum.brutauth.util.RulesMap

package br.com.caelum.brutauth.util;

import java.util.HashMap;

import br.com.caelum.brutauth.auth.rules.BrutauthRule;

public class RulesMap extends HashMap<Class<? extends BrutauthRule>, BrutauthRule> {
 
  private static final long serialVersionUID = 1L;

  @Override
  public BrutauthRule get(Object key) {
    BrutauthRule rule = super.get(key);
    if (rule == null) {
      throw new IllegalArgumentException();
    }
    return rule;
  }
 
}
TOP

Related Classes of br.com.caelum.brutauth.util.RulesMap

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.