Package org.conventionsframework.qualifier

Examples of org.conventionsframework.qualifier.PropertyKey.key()


    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 "";
    }

    @Produces
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.