Advanced-Portals/src/main/java/com/sekwah/advancedportals/core/config/RepositoryModule.java

19 lines
789 B
Java

package com.sekwah.advancedportals.core.config;
import com.google.inject.AbstractModule;
import com.google.inject.Scopes;
import com.sekwah.advancedportals.core.repository.*;
public class RepositoryModule extends AbstractModule {
@Override
protected void configure() {
bind(IPortalRepository.class).to(PortalRepository.class).in(Scopes.SINGLETON);
bind(IDestinationRepository.class).to(DestinationRepository.class).in(Scopes.SINGLETON);
bind(IPortalRepository.class).to(PortalRepository.class).in(Scopes.SINGLETON);
bind(IConfigurations.class).to(Configurations.class).in(Scopes.SINGLETON);
bind(ILangRepository.class).to(LangRepository.class).in(Scopes.SINGLETON);
//bindListener(Matchers.Any(), new Log4JTypeListenr());
}
}