app/src/main/java/db/juhaku/juhakudb/core/android/DatabaseManager.java
/**
     * Call this method to inject automatically repositories to given object. Automatic annotation
     * based repository injection will be used if it is enabled by the {@link DatabaseConfiguration}.
     * <p>
     * <p>See {@link RepositoryLookupInjector#lookupRepositories(Object)} for additional details of
     * annotation based repository injection.</p>
     * <p>
     * <p>Calling this method can be done from any object that has access to database manager but
     * for sake of design it is only encouraged to do so from super Activities and super Fragments.
     * For most cases calling this method is not necessary in other application classes.</p>
     * <p>
     * <p>Since Android does not provide access to instantiated objects neither do we. You are free
     * to write your own running objects mapping system and call this method from there if needed.</p>
     * <p>
     * <p>This method is provided to give you leverage to execute repository lookup on creation
     * of objects in "Android way" and that's how we think it should be. In example this could be
     * something like following code executed in super activity.</p>
     * <code>
     * public void onCreate(Bundle bundle) &#123;<br/>
     * &#9;&#9;super.onCreate(bundle);<br>
     * &#9;&#9;getDatabaseManager().lookupRepositories(this);<br>
     * &#125;
     * </code>
     *
     * @param object Object to look for repositories to inject. e.g. your extended Activity.
     * @since 1.1.0
     */
Call this method to inject automatically repositories to given object. Automatic annotation
based repository injection will be used if it is enabled by the  DatabaseConfiguration.

See  RepositoryLookupInjector#lookupRepositories(Object) for additional details of
annotation based repository injection.

Calling this method can be done from any object that has access to database manager but
for sake of design it is only encouraged to do so from super Activities and super Fragments.
For most cases calling this method is not necessary in other application classes.

Since Android does not provide access to instantiated objects neither do we. You are free
to write your own running objects mapping system and call this method from there if needed.

This method is provided to give you leverage to execute repository lookup on creation
of objects in "Android way" and that's how we think it should be. In example this could be
something like following code executed in super activity.

public void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		getDatabaseManager().lookupRepositories(this);
}.

@param object Object to look for repositories to inject.
Call this method to inject automatically repositories to given object . Automatic annotation based repository injection will be used if it is enabled by the DatabaseConfiguration . See RepositoryLookupInjector#lookupRepositories ( Object ) for additional details of annotation based repository injection . Calling this method can be done from any object that has access to database manager but for sake of design it is only encouraged to do so from super Activities and super Fragments . For most cases calling this method is not necessary in other application classes . Since Android does not provide access to instantiated objects neither do we . You are free to write your own running objects mapping system and call this method from there if needed . This method is provided to give you leverage to execute repository lookup on creation of objects in " Android way " and that ' s how we think it should be . In example this could be something like following code executed in super activity . public void onCreate ( Bundle bundle ) { super . onCreate ( bundle ) ; getDatabaseManager () . lookupRepositories ( this ) ; } . @param object Object to look for repositories to inject .
public void lookupRepositories(Object object) {
        if (configuration.isEnableAutoInject()) {
            injector.lookupRepositories(object);
        }
    }
public void lookupRepositories ( Object object ) { if ( configuration . isEnableAutoInject ( ) ) { injector . lookupRepositories ( object ) ; } }
Call this method to inject automatically repositories to given object.
Call this method to inject automatically repositories to given object .
// safety check