package de.ivu.elect.jee.presentation.redirect;

import java.io.Serializable;
import java.util.Collections;
import java.util.Map;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 *  on 03.07.2015.
 */
@Named(RedirectParameterAttachement.COMPONENT_NAME)
@RequestScoped
public class RedirectParameterAttachement implements Serializable {

  public static final String COMPONENT_NAME = "redirectParameterAttachement";

  private Map<String, String> map = null;

  public Map<String, String> getParameterMap() {
    if (map == null) {
      map = buildMap();
    }
    return map;
  }

  protected Map<String, String> buildMap() {
    return Collections.emptyMap();
  }

  public void reset() {
    map = null;
  }
}
