All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.caelum.vraptor.serialization.xstream.NullConverter Maven / Gradle / Ivy

There is a newer version: 4.3.0-beta-3
Show newest version
package br.com.caelum.vraptor.serialization.xstream;

import javax.enterprise.context.ApplicationScoped;

import com.thoughtworks.xstream.converters.SingleValueConverter;

/**
 * for DI purposes
 */
@ApplicationScoped
public class NullConverter implements SingleValueConverter {
	@Override
	public String toString(Object o) {return null;}

	@Override
	public Object fromString(String s) {return null;}

	@Override
	public boolean canConvert(Class aClass) {return false;}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy