Spring Framework CustomCollectionEditor - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework CustomCollectionEditor class.

This code example shows how to use the following methods:
     
    private UserHolder userHolder; 
    private UserService userService; 
     
    public SubscriptionCollectionEditor(Class collection) { 
        super(collection); 
    } 
     
    public SubscriptionCollectionEditor(Class collection, boolean nullAsEmptyCollection) { 
        super(collection, nullAsEmptyCollection); 
    } 
 
    public void setUserHolder(UserHolder userHolder) { 
        this.userHolder = userHolder; 
    } 
 
    public void setUserService(UserService userService) { 
        this.userService = userService; 
    } 
 
5
CodeRank
This code example shows how to use the following methods:
    private String propertyName;
    private PropertyEditor stringConvertor;
    private Class stringConvertorOutput;
     
    public ReflectiveCollectionEditor(Class collection) {
        super(collection);
    } 
     
    public ReflectiveCollectionEditor(Class collection, boolean nullAsEmptyCollection) {
        super(collection, nullAsEmptyCollection);
    } 
     
    protected Object convertElement(Object element) {
        Object result = null;
         
        // Convert from string to object: 
        if (element instanceof String) {
            String textValue = (String) element;
            try { 
                if (this.stringConvertor == null) {
4
CodeRank