Back to project page android-sqlite-server.
The source code is released under:
Apache License
If you think the Android project android-sqlite-server listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.devtcg.sqliteserver.impl; //from www .j a v a 2 s .c o m import org.devtcg.sqliteserver.SQLiteServer; import org.devtcg.sqliteserver.impl.binder.ServerImpl; public class ServerImplProvider { private final SQLiteServer mBackend; private ServerImpl mServerImpl; public ServerImplProvider(SQLiteServer backend) { mBackend = backend; } public synchronized ServerImpl get() { if (mServerImpl == null) { SQLiteExecutor executor = new SQLiteExecutor(mBackend.getWritableDatabase()); mServerImpl = new ServerImpl(mBackend.getClass().getSimpleName(), executor, mBackend.getServerName()); } return mServerImpl; } }