Package arez.persist.runtime.browser
Class ArezPersistBrowserUtil
java.lang.Object
arez.persist.runtime.browser.ArezPersistBrowserUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidRegister a byte converter that is useful when converting to json representation.static voidRegister a character converter that is useful when converting to json representation.static voidRegister a Float converter that is useful when converting to json representation.static voidRegister a Integer converter that is useful when converting to json representation.static voidregisterLocalStore(String persistenceKey) Register a store under theStoreTypes.LOCALname that saves state in a browsers local storage.static voidRegister a Long converter that is useful when converting to json representation.static voidregisterSessionStore(String persistenceKey) Register a store under theStoreTypes.SESSIONname that saves state in a browsers session storage.static voidRegister a Short converter that is useful when converting to json representation.
-
Method Details
-
registerSessionStore
Register a store under theStoreTypes.SESSIONname that saves state in a browsers session storage.- Parameters:
persistenceKey- the key under which the state is stored.
-
registerLocalStore
Register a store under theStoreTypes.LOCALname that saves state in a browsers local storage.- Parameters:
persistenceKey- the key under which the state is stored.
-
registerCharacterConverter
Register a character converter that is useful when converting to json representation. -
registerByteConverter
Register a byte converter that is useful when converting to json representation. -
registerShortConverter
Register a Short converter that is useful when converting to json representation. -
registerIntegerConverter
Register a Integer converter that is useful when converting to json representation. -
registerLongConverter
Register a Long converter that is useful when converting to json representation. -
registerFloatConverter
Register a Float converter that is useful when converting to json representation.
-