
org.uqbar.commons.applicationContext.ApplicationContext Maven / Gradle / Ivy
The newest version!
package org.uqbar.commons.applicationContext;
import java.util.HashMap;
import java.util.Map;
import org.uqbar.commons.model.Entity;
import org.uqbar.commons.model.Repo;
/**
* Clase Singleton que permite almacenar y recuperar "well known instances", como
* repositorios y cualquier otro objeto singleton (componentes de envío de mails,
* simulación de impresoras, etc.).
*
* Implementa un Patrón arquitectural llamado Service Locator
*
*
*
* ApplicationContext is a Singleton class that allows to retrieve special
* or "well known" instances, like repositories or any other singleton objects.
* It implements a Service Locator Architecture Pattern
*
*/
public class ApplicationContext {
private static ApplicationContext instance = new ApplicationContext();
private Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy