Open Source Repository

Home /json/flexjson-2.1 | Repository Home



flexjson/factories/BigIntegerFactory.java
package flexjson.factories;

import flexjson.ObjectBinder;
import flexjson.ObjectFactory;

import java.lang.reflect.Type;
import java.math.BigInteger;

public class BigIntegerFactory implements ObjectFactory {
    public Object instantiate(ObjectBinder context, Object value, Type targetType, Class targetClass) {
        return new BigIntegervalue.toString() );
    }
}