Package org.springframework.core.closure

Examples of org.springframework.core.closure.Closure


    // This is a hack to get the combo box working even though
    // PetType does not implement equals/hashCode.
    private class PetTypeAdapter extends TypeConverter {
        private PetTypeAdapter(ValueModel valueModel, final Map petTypes) {
            super(valueModel, new Closure() {
                public Object call(Object petType) {                   
                    return petType != null ? ((PetType)petType).getName() : "";
                }
            }, new Closure() {
                public Object call(Object petTypeName) {
                    return petTypes.get(petTypeName);
                }
            });           
        }
View Full Code Here

TOP

Related Classes of org.springframework.core.closure.Closure

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.