library/src/main/java/ru/noties/storm/Storm.java
public void init(Context applicationContext, boolean isDebug) {

        if (mIsInitCalled) {
            throw new AssertionError("init() has already been called");
        }

        mApplicationContext         = applicationContext;

        mFieldValueGetterFactory    = new FieldValueGetterFactory();
        mFieldValueSetterFactory    = new FieldValueSetterFactory();
        mCursorValueProviderFactory = new CursorValueProviderFactory();
        mContentValuesSetterFactory = new ContentValuesSetterFactory();

        mIsDebug = isDebug;
        mIsInitCalled = true;
    }
public void init(Context applicationContext, boolean isDebug) {

        if (mIsInitCalled) {
            throw new AssertionError("init() has already been called");
        }

        mApplicationContext         = applicationContext;

        mFieldValueGetterFactory    = new FieldValueGetterFactory();
        mFieldValueSetterFactory    = new FieldValueSetterFactory();
        mCursorValueProviderFactory = new CursorValueProviderFactory();
        mContentValuesSetterFactory = new ContentValuesSetterFactory();

        mIsDebug = isDebug;
        mIsInitCalled = true;
    }
public void init ( Context applicationContext , boolean isDebug ) { if ( mIsInitCalled ) { throw new AssertionError ( "init() has already been called" ) ; } mApplicationContext = applicationContext ; mFieldValueGetterFactory = new FieldValueGetterFactory ( ) ; mFieldValueSetterFactory = new FieldValueSetterFactory ( ) ; mCursorValueProviderFactory = new CursorValueProviderFactory ( ) ; mContentValuesSetterFactory = new ContentValuesSetterFactory ( ) ; mIsDebug = isDebug ; mIsInitCalled = true ; }
The main entry point for the Storm library.
Should be called only once - Application's onCreate() is a good start
This method won't open any SQLite database connections. See {@link DatabaseManager#open()}

@param applicationContext {@link android.content.Context} of an {@link android.app.Application}
@param isDebug flag to indicate that current build is debug,
may be helpful when debugging as Storm
will throw {@link java.lang.Exception} more aggressively
@throws java.lang.AssertionError if this method was already called
The main entry point for the Storm library . Should be called only once - Application s onCreate () is a good start This method won t open any SQLite database connections . See { @link DatabaseManager#open () }