@Component(value="core_FetchPlanSerialization") public class FetchPlanSerializationImpl extends java.lang.Object implements FetchPlanSerialization
Modifier and Type | Class and Description |
---|---|
protected class |
FetchPlanSerializationImpl.FetchPlanDeserializer |
protected class |
FetchPlanSerializationImpl.FetchPlanSerializer |
Modifier and Type | Field and Description |
---|---|
protected CoreProperties |
coreProperties |
protected FetchPlans |
fetchPlans |
protected Metadata |
metadata |
Constructor and Description |
---|
FetchPlanSerializationImpl() |
Modifier and Type | Method and Description |
---|---|
protected com.google.gson.Gson |
createGson(FetchPlanSerializationOption... options) |
protected FetchPlanBuilder |
findFetchPlanBuilder(java.util.Collection<FetchPlanBuilder> loadedBuilders,
java.lang.Class<?> aClass,
java.lang.String fetchPlanName) |
protected FetchPlan |
findProcessedFetchPlan(java.util.Collection<FetchPlan> processedFetchPlans,
java.lang.Class<?> aClass,
java.lang.String fetchPlanName) |
FetchPlan |
fromJson(java.lang.String json)
Deserializes a JSON object to fetch plan.
|
java.lang.String |
toJson(FetchPlan fetchPlan,
FetchPlanSerializationOption... options)
Serializes a fetch plan to JSON object
|
@Autowired protected Metadata metadata
@Autowired protected FetchPlans fetchPlans
@Autowired protected CoreProperties coreProperties
public FetchPlan fromJson(java.lang.String json)
FetchPlanSerialization
FetchPlanSerializationOption.COMPACT_FORMAT
option.fromJson
in interface FetchPlanSerialization
json
- JSON objects that represents the fetch planpublic java.lang.String toJson(FetchPlan fetchPlan, FetchPlanSerializationOption... options)
FetchPlanSerialization
toJson
in interface FetchPlanSerialization
fetchPlan
- a fetchPlanoptions
- options specifying how a JSON object graph should be serializedprotected com.google.gson.Gson createGson(FetchPlanSerializationOption... options)
@Nullable protected FetchPlanBuilder findFetchPlanBuilder(java.util.Collection<FetchPlanBuilder> loadedBuilders, java.lang.Class<?> aClass, java.lang.String fetchPlanName)