blob: 74f5cf2f51ad7ce319caf4b8e92996209500861b [file] [log] [blame]
package org.apache.fineract.injection.component;
import org.apache.fineract.injection.ConfigPersistent;
import org.apache.fineract.injection.module.ActivityModule;
import org.apache.fineract.ui.base.FineractBaseActivity;
import dagger.Component;
/**
* A dagger component that will live during the lifecycle of an Activity but it won't
* be destroy during configuration changes.
* Check {@link FineractBaseActivity} to see how this components
* survives configuration changes.
* Use the {@link ConfigPersistent} scope to annotate dependencies that need to survive
* configuration changes (for example Presenters).
*/
@ConfigPersistent
@Component(dependencies = ApplicationComponent.class)
public interface ConfigPersistentComponent {
ActivityComponent activityComponent(ActivityModule activityModule);
}