Jochen Berger
10 years ago
2 changed files with 53 additions and 25 deletions
@ -0,0 +1,37 @@
|
||||
package com.jayway.jsonpath.internal; |
||||
|
||||
import java.util.EnumSet; |
||||
import java.util.Set; |
||||
|
||||
import com.jayway.jsonpath.Configuration.Defaults; |
||||
import com.jayway.jsonpath.Option; |
||||
import com.jayway.jsonpath.spi.json.JsonProvider; |
||||
import com.jayway.jsonpath.spi.json.JsonSmartJsonProvider; |
||||
import com.jayway.jsonpath.spi.mapper.JsonSmartMappingProvider; |
||||
import com.jayway.jsonpath.spi.mapper.MappingProvider; |
||||
|
||||
public final class DefaultsImpl implements Defaults { |
||||
|
||||
public static final DefaultsImpl INSTANCE = new DefaultsImpl(); |
||||
|
||||
private final MappingProvider mappingProvider = new JsonSmartMappingProvider(); |
||||
|
||||
@Override |
||||
public JsonProvider jsonProvider() { |
||||
return new JsonSmartJsonProvider(); |
||||
} |
||||
|
||||
@Override |
||||
public Set<Option> options() { |
||||
return EnumSet.noneOf(Option.class); |
||||
} |
||||
|
||||
@Override |
||||
public MappingProvider mappingProvider() { |
||||
return mappingProvider; |
||||
} |
||||
|
||||
private DefaultsImpl() { |
||||
}; |
||||
|
||||
} |
Loading…
Reference in new issue