Package org.conventionsframework.qualifier

Examples of org.conventionsframework.qualifier.PropertyKey


    @Produces
    @PropertyKey
    public String produceKey(InjectionPoint ip) {

        if (ip.getAnnotated().isAnnotationPresent(PropertyKey.class)) {
            PropertyKey property = ip.getAnnotated().getAnnotation(PropertyKey.class);
            this.loadProperties(property.file());
            return currentProps.getProperty(property.key());
        }
        return "";
    }
View Full Code Here

TOP

Related Classes of org.conventionsframework.qualifier.PropertyKey

Copyright © 2018 www.massapicom. 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.