Class SettingsSupport
java.lang.Object
it.uniroma2.art.semanticturkey.extension.settings.impl.SettingsSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SettingscreateSettings(SettingsManager settingsManager, Scope scope, com.fasterxml.jackson.databind.node.ObjectNode settings) static org.springframework.context.ApplicationEventPublisherstatic WorldgetRelevantWorld(SettingsManager settingsManager) Returns theWorldthat should be used by the provided settings manager.getSettingsClass(SettingsManager settingsManager, Scope scope) static voidsetEventPublisher(org.springframework.context.ApplicationEventPublisher newEventPublisher)
-
Constructor Details
-
SettingsSupport
public SettingsSupport()
-
-
Method Details
-
setEventPublisher
public static void setEventPublisher(org.springframework.context.ApplicationEventPublisher newEventPublisher) -
getEventPublisher
public static org.springframework.context.ApplicationEventPublisher getEventPublisher() -
getSettingsClass
public static <T extends Settings> Class<T> getSettingsClass(SettingsManager settingsManager, Scope scope) -
createSettings
public static Settings createSettings(SettingsManager settingsManager, Scope scope, com.fasterxml.jackson.databind.node.ObjectNode settings) throws WrongPropertiesException, STPropertyAccessException -
getRelevantWorld
Returns theWorldthat should be used by the provided settings manager. IfSettingsManager.isStatic(), then the operation returnsWorld.MAIN; otherwise, the operation returnsMultiverseManager.getCurrentWorld().- Parameters:
settingsManager-- Returns:
-