-
Notifications
You must be signed in to change notification settings - Fork 7
/
MobileModule.java
35 lines (31 loc) · 1.78 KB
/
MobileModule.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package aquality.appium.mobile.application;
import aquality.appium.mobile.actions.IActionsModule;
import aquality.appium.mobile.actions.ITouchActions;
import aquality.appium.mobile.configuration.IApplicationProfile;
import aquality.appium.mobile.configuration.IConfiguration;
import aquality.appium.mobile.configuration.IConfigurationsModule;
import aquality.appium.mobile.configuration.ILocalServiceSettings;
import aquality.appium.mobile.configuration.ITouchActionsConfiguration;
import aquality.appium.mobile.elements.IElementsModule;
import aquality.appium.mobile.elements.interfaces.IElementFactory;
import aquality.appium.mobile.screens.screenfactory.IScreenFactory;
import aquality.appium.mobile.screens.screenfactory.IScreensModule;
import aquality.selenium.core.applications.AqualityModule;
import com.google.inject.Provider;
import com.google.inject.Singleton;
public class MobileModule extends AqualityModule<IMobileApplication> implements IConfigurationsModule, IElementsModule, IScreensModule, IActionsModule {
public MobileModule(Provider<IMobileApplication> applicationProvider) {
super(applicationProvider);
}
@Override
protected void configure() {
super.configure();
bind(IApplicationProfile.class).to(getApplicationProfileImplementation()).in(Singleton.class);
bind(ILocalServiceSettings.class).to(getLocalServiceSettingsImplementation()).in(Singleton.class);
bind(IConfiguration.class).to(getConfigurationImplementation());
bind(IElementFactory.class).to(getElementFactoryImplementation());
bind(IScreenFactory.class).to(getScreenFactoryImplementation());
bind(ITouchActionsConfiguration.class).to(getTouchActionsConfigurationImplementation());
bind(ITouchActions.class).to(getTouchActionsImplementation());
}
}