Skip to content

Commit

Permalink
make info service a singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
elopezcastro authored Oct 10, 2023
1 parent 74195c1 commit 6145b13
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ public class CoreDataServicesModule extends PrivateModule
@Override
protected void configure()
{

bind(ProjectsService.class).to(ProjectsServiceImpl.class);
bind(InfoService.class);

expose(ProjectsService.class);
expose(InfoService.class);
Expand All @@ -48,4 +46,11 @@ public DependencyOverride initialiseDependencyCache()
{
return new DependencyUtil();
}

@Provides
@Singleton
public InfoService initInfo()
{
return new InfoService();
}
}

0 comments on commit 6145b13

Please sign in to comment.