Search in sources :

Example 1 with EnrollmentStore

use of org.hisp.dhis.android.core.enrollment.EnrollmentStore in project dhis2-android-sdk by dhis2.

the class HandlerFactory method createEnrollmentHandler.

public static EnrollmentHandler createEnrollmentHandler(DatabaseAdapter databaseAdapter) {
    EnrollmentStore enrollmentStore = new EnrollmentStoreImpl(databaseAdapter);
    EventHandler eventHandler = createEventHandler(databaseAdapter);
    EnrollmentHandler enrollmentHandler = new EnrollmentHandler(databaseAdapter, enrollmentStore, eventHandler);
    return enrollmentHandler;
}
Also used : EnrollmentStore(org.hisp.dhis.android.core.enrollment.EnrollmentStore) EnrollmentStoreImpl(org.hisp.dhis.android.core.enrollment.EnrollmentStoreImpl) EventHandler(org.hisp.dhis.android.core.event.EventHandler) EnrollmentHandler(org.hisp.dhis.android.core.enrollment.EnrollmentHandler)

Aggregations

EnrollmentHandler (org.hisp.dhis.android.core.enrollment.EnrollmentHandler)1 EnrollmentStore (org.hisp.dhis.android.core.enrollment.EnrollmentStore)1 EnrollmentStoreImpl (org.hisp.dhis.android.core.enrollment.EnrollmentStoreImpl)1 EventHandler (org.hisp.dhis.android.core.event.EventHandler)1