All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.anoprise.metafactory.SystemPropertyResolver Maven / Gradle / Ivy

Go to download

Collection of utils for different enterprise class projects. Among other stuff contains Caches, Mocking, DualCrud, MetaFactory and SessionDistributorService. Visit https://opensource.anotheria.net for details.

There is a newer version: 4.0.0
Show newest version
package net.anotheria.anoprise.metafactory;

/**
 * Alias resolver based on system properties.
 * @author lrosenberg.
 *
 */
public class SystemPropertyResolver implements AliasResolver{
	
	/**
	 * Prefix for system properties understood by this resolver.
	 */
	public static final String PROPERTY_PREFIX = "ano.doc.mf-alias";

	@Override
	public int getPriority() {
		return 0;
	}

	@Override
	public String resolveAlias(String alias) {
		return System.getProperty(PROPERTY_PREFIX+alias);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy