Java 类org.jivesoftware.smackx.iqprivate.PrivateDataManager 实例源码

项目:Smack    文件:BookmarkManager.java   
/**
 * Default constructor. Registers the data provider with the private data manager in the
 * storage:bookmarks namespace.
 *
 * @param connection the connection for persisting and retrieving bookmarks.
 */
private BookmarkManager(XMPPConnection connection) throws XMPPException, SmackException {
    privateDataManager = PrivateDataManager.getInstanceFor(connection);
    bookmarkManagerMap.put(connection, this);
}