本文整理汇总了Java中com.google.inject.servlet.SessionScoped类的典型用法代码示例。如果您正苦于以下问题:Java SessionScoped类的具体用法?Java SessionScoped怎么用?Java SessionScoped使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SessionScoped类属于com.google.inject.servlet包,在下文中一共展示了SessionScoped类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import com.google.inject.servlet.SessionScoped; //导入依赖的package包/类
@Override
protected void configure() {
bind(new TypeLiteral<UserDao<? extends UserEntity<? extends RoleEntity>>>() {}).to(JpaUserDao.class);
bind(edu.emory.cci.aiw.cvrg.eureka.services.dao.UserDao.class).to(JpaUserDao.class);
bind(RoleDao.class).to(JpaRoleDao.class);
bind(PhenotypeEntityDao.class).to(JpaPhenotypeEntityDao.class);
bind(TimeUnitDao.class).to(JpaTimeUnitDao.class);
bind(RelationOperatorDao.class).to(JpaRelationOperatorDao.class);
bind(ValueComparatorDao.class).to(JpaValueComparatorDao.class);
bind(ThresholdsOperatorDao.class).to(JpaThresholdsOperatorDao.class);
bind(FrequencyTypeDao.class).to(JpaFrequencyTypeDao.class);
bind(ThresholdsOperatorDao.class).to
(JpaThresholdsOperatorDao.class);
bind(new TypeLiteral<PropositionFinder<
String>>(){}).to(SystemPropositionFinder.class);
bind(Context.class).to(InitialContext.class);
bind(Session.class).toProvider(
JndiIntegration.fromJndi(Session.class,
"java:comp/env/mail/Session"));
bind(EtlClient.class).toProvider(this.etlClientProvider).in(SessionScoped.class);
}
示例2: configure
import com.google.inject.servlet.SessionScoped; //导入依赖的package包/类
@Override
protected void configure() {
bind(RouterTable.class).to(WebappRouterTable.class).in(SessionScoped.class);
bind(WebappProperties.class).toInstance(this.webappProperties);
bind(CasEurekaClinicalProperties.class).toInstance(this.webappProperties);
bind(ServicesClient.class).toProvider(this.servicesClientProvider).in(SessionScoped.class);
bind(EtlClient.class).toProvider(this.etlClientProvider).in(SessionScoped.class);
bind(EurekaClinicalUserClient.class).toProvider(this.userClientProvider).in(SessionScoped.class);
bind(EurekaClinicalRegistryClient.class).toProvider(this.registryClientProvider).in(SessionScoped.class);
}
示例3: configureUserSession
import com.google.inject.servlet.SessionScoped; //导入依赖的package包/类
protected void configureUserSession() {
bind(UserSession.class).to(getUserSessionClass()).in(SessionScoped.class);
}