com.webobjects.eoapplication.client
Class EORemoteStorageDefaults
java.lang.Object
|
+--com.webobjects.eoapplication.EODefaults
|
+--com.webobjects.eoapplication.client.EORemoteStorageDefaults
- All Implemented Interfaces:
- NSDisposable
- public class EORemoteStorageDefaults
- extends EODefaults
EORemoteStorageDefaults works together with the server side of a Java Client application to
manage the defaults of an application: When the client starts up, it tries to receive values
from the distribution context on the server side, and when the application terminates, it asks
the distribution context to store all the persistent values. The distribution context in turn
sends out notifications to read or write the default values, so you can register for these
notifications on the server side and implement your own storage mechanism (for example to
store the user defaults in the database).
- See Also:
EODefaults
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EORemoteStorageDefaults
public EORemoteStorageDefaults()
- Creates a new defaults manager object.
loadPersistentValues
protected NSDictionary loadPersistentValues()
- Tries to load the persistent user defaults from the server.
On the server side you need to register for
EODefaults.LoadUserDefaultsNotification
notifications
to fill in the values, otherwise nothing happens.
- Overrides:
loadPersistentValues
in class EODefaults
- Returns:
- the defaults loaded
- See Also:
#savePersistentValues()
savePersistentValues
protected void savePersistentValues(NSDictionary values)
- Saves the persistent user defaults by asking the server to store
them. On the server side you need to register for
EODefaults.SaveUserDefaultsNotification
notifications
to save the values, otherwise nothing happens.
- Overrides:
savePersistentValues
in class EODefaults
- Parameters:
values
- the persistent values to save- See Also:
loadPersistentValues()
Copyright © 2003 Apple Computer, Inc.