Package com.cloudbees.mtslaves.client.properties

Examples of com.cloudbees.mtslaves.client.properties.PropertyName


    /**
     * Gets a property with databinding. The type must have {@link com.cloudbees.mtslaves.client.properties.PropertyName} annotation on it.
     */
    public <T extends Property> T getProperty(Class<T> type) {
        PropertyName pn = type.getAnnotation(PropertyName.class);
        if (pn==null)   throw new IllegalArgumentException(type+" does not have @PropertyName");

        return getProperty(pn.value(),type);
    }
View Full Code Here

TOP

Related Classes of com.cloudbees.mtslaves.client.properties.PropertyName

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.