use of com.optimizely.ab.android.shared.ServiceScheduler in project android-sdk by optimizely.
the class EventIntentService method onCreate.
/**
* Create the event dispatcher {@link EventDispatcher}
* @see IntentService#onCreate()
*/
@Override
public void onCreate() {
super.onCreate();
OptlyStorage optlyStorage = new OptlyStorage(this);
EventClient eventClient = new EventClient(new Client(optlyStorage, LoggerFactory.getLogger(Client.class)), LoggerFactory.getLogger(EventClient.class));
EventDAO eventDAO = EventDAO.getInstance(this, "1", LoggerFactory.getLogger(EventDAO.class));
ServiceScheduler serviceScheduler = new ServiceScheduler(this, new ServiceScheduler.PendingIntentFactory(this), LoggerFactory.getLogger(ServiceScheduler.class));
eventDispatcher = new EventDispatcher(this, optlyStorage, eventDAO, eventClient, serviceScheduler, LoggerFactory.getLogger(EventDispatcher.class));
}
Aggregations