当前位置: 首页>>代码示例>>Java>>正文


Java SessionScoped类代码示例

本文整理汇总了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);
}
 
开发者ID:eurekaclinical,项目名称:eureka,代码行数:24,代码来源:AppModule.java

示例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);
}
 
开发者ID:eurekaclinical,项目名称:eureka,代码行数:11,代码来源:AppModule.java

示例3: configureUserSession

import com.google.inject.servlet.SessionScoped; //导入依赖的package包/类
protected void configureUserSession() {
    bind(UserSession.class).to(getUserSessionClass()).in(SessionScoped.class);
}
 
开发者ID:SoftTeco,项目名称:st-toolset,代码行数:4,代码来源:AbstractApplicationModule.java


注:本文中的com.google.inject.servlet.SessionScoped类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。