net.anotheria.anoprise.metafactory.SystemPropertyResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ano-prise Show documentation
Show all versions of ano-prise Show documentation
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.
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