public class ConfectorySettings extends Object
Confectory project.| Modifier and Type | Method and Description |
|---|---|
DataFetchStrategy |
getDefaultDataFetchStrategy()
Returns the
DataFetchStrategy to be applied by default when no specific
strategy is defined. |
NullValueProvider |
getDefaultNullValueProvider()
Returns the
NullValueProvider to be applied by default when no such provider
specified at Configuration level. |
static ConfectorySettings |
getInstance() |
void |
reset()
Resets
Confectory configuration. |
void |
setDefaultDataFetchStrategy(DataFetchStrategy strategy)
Defines the
DataFetchStrategy to be applied by default when no specific
strategy is defined. |
void |
setDefaultNullValueProvider(NullValueProvider provider)
Defines the
NullValueProvider to be applied by default when no such provider
specified at Configuration level. |
public void reset()
Confectory configuration.public static ConfectorySettings getInstance()
ConfectorySettings instance.public NullValueProvider getDefaultNullValueProvider()
NullValueProvider to be applied by default when no such provider
specified at Configuration level.NullValueProviderpublic void setDefaultNullValueProvider(NullValueProvider provider)
NullValueProvider to be applied by default when no such provider
specified at Configuration level.provider - the default NullValueProvider to set; not nullNullPointerException - if the specified provider is nullpublic DataFetchStrategy getDefaultDataFetchStrategy()
DataFetchStrategy to be applied by default when no specific
strategy is defined.DataFetchStrategy to be appliedpublic void setDefaultDataFetchStrategy(DataFetchStrategy strategy)
DataFetchStrategy to be applied by default when no specific
strategy is defined.strategy - the default DataFetchStrategy to set; not nullNullPointerException - if the specified strategy is nullCopyright © 2021. All rights reserved.