Persistent store class for PushRegistry module.
IMPORTANT_NOTE: The clients of this class should ensure that content store
manager passed into the constructor doesn't have exclusive lock when
methods are invoked. Otherwise we'll face deadlocks.
NB: method getConnections guarantees
that MIDlet suite without connections won't be listed,
i.e. MIDletSuiteConnections.connections
array is not empty
NB: this class has no intellegence of connection
semantics, e.g. it doesn't handle connection conflicts. It's a simplistic
database.
Implementation notice: as for now if MIDlet
suite removes all the connections, the file with suite connections
is not removed and the suite is filtered in
method.
Another option might be to remove the file.
|