[Java] Interface PrefsFactory