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


Java ServiceBinder类代码示例

本文整理汇总了Java中org.apache.tapestry5.ioc.ServiceBinder的典型用法代码示例。如果您正苦于以下问题:Java ServiceBinder类的具体用法?Java ServiceBinder怎么用?Java ServiceBinder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ServiceBinder类属于org.apache.tapestry5.ioc包,在下文中一共展示了ServiceBinder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
    binder.bind(RandomNumberGenerator.class, SecureRandomNumberGenerator.class);
    binder.bind(ConfigurationService.class, ConfigurationServiceImpl.class);
    binder.bind(VdrDataService.class, VdrDataServiceImpl.class);
    binder.bind(EpgDataService.class, EpgDataServiceFacadeImpl.class);
    binder.bind(EpgImageService.class, EpgImageServiceFacadeImpl.class);
    binder.bind(CommandService.class, CommandServiceImpl.class);
    binder.bind(EpgdSearchTimerService.class, EpgdSearchTimerServiceImpl.class);
    binder.bind(SvdrpNashornService.class, SvdrpNashornServiceImpl.class);
    binder.bind(Epg2VdrNashornService.class, Epg2VdrNashornServiceImpl.class);
    binder.bind(ChannelMapService.class, ChannelMapServiceImpl.class);
    binder.bind(UserService.class, UserServiceImpl.class);
    binder.bind(ChannelEncoder.class);
    binder.bind(GlobalLogoFilename.class);
    binder.bind(GlobalValues.class);
}
 
开发者ID:Zabrimus,项目名称:vdr-jonglisto,代码行数:17,代码来源:AppModule.java

示例2: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {

		binder.bind(RoleDAO.class, SimpleRoleDAOImpl.class);
		binder.bind(PermissionDAO.class, SimplePermissionDAOImpl.class);

		binder.bind(EntityRefDAO.class, EntityRefDAOImpl.class).scope(
				ScopeConstants.PERTHREAD);

		binder.bind(EntityDAO.class, EntityDAOImpl.class);

		binder.bind(IdTypeDAO.class, IdTypeDAOSQLImpl.class);

		binder.bind(TransactionDAO.class, TransactionDAOSQLImpl.class).withId(
				"Primary");
		binder.bind(Funnel.class, DefaultEntityLightFunnel.class).withMarker(
				EntityLightFunnelMarker.class);
		// TODO: Make this into a service in the core we can contribute to (for
		// distributed configuration!)
		binder.bind(DataSourceListDAO.class, DataSourceListDAOImpl.class);

		binder.bind(IMemoryDB.class, WalkerMemoryDB.class);
	}
 
开发者ID:Sotera,项目名称:graphene-walker,代码行数:23,代码来源:TestModule.java

示例3: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
/**
 * Declares some services.
 */
public static void bind(ServiceBinder binder) {
	binder.bind(UserDAO.class, UserDAOImpl.class);
	binder.bind(PageDAO.class, PageDAOImpl.class);
	binder.bind(TagDAO.class, TagDAOImpl.class);
	binder.bind(CommentDAO.class, CommentDAOImpl.class);
	binder.bind(CommentController.class, CommentControllerImpl.class);
	binder.bind(UserController.class, UserControllerImpl.class);
	binder.bind(PageController.class, PageControllerImpl.class);
	binder.bind(TagController.class, TagControllerImpl.class);
	binder.bind(EloquentiaRealm.class);
	binder.bind(PasswordService.class, BcryptPasswordService.class);
	binder.bind(PasswordHasher.class, BcryptPasswordService.class);
	binder.bind(UserValueEncoder.class);
	binder.bind(PageValueEncoder.class);
	binder.bind(PagePermissionChecker.class);
	binder.bind(UserService.class, UserServiceImpl.class);
	binder.bind(PageActivationContextService.class, PageActivationContextServiceImpl.class);
}
 
开发者ID:thiagohp,项目名称:eloquentia,代码行数:22,代码来源:AppModule.java

示例4: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
    binder.bind(ClassroomFinderService.class, ClassroomFinderServiceTapestryImpl.class);
    binder.bind(ClassroomManagerService.class, ClassroomManagerServiceTapestryImpl.class);
    binder.bind(CourseFinderService.class, CourseFinderServiceTapestryImpl.class);
    binder.bind(CourseManagerService.class, CourseManagerServiceTapestryImpl.class);

    // binder.bind(MyServiceInterface.class, MyServiceImpl.class);

    // Make bind() calls on the binder object to define most IoC services.
    // Use service builder methods (example below) when the implementation
    // is provided inline, or requires more initialization than simply
    // invoking the constructor.
}
 
开发者ID:beargiles,项目名称:project-student,代码行数:14,代码来源:AppModule.java

示例5: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
	// binder.bind(MyServiceInterface.class, MyServiceImpl.class);

	// Make bind() calls on the binder object to define most IoC services.
	// Use service builder methods (example below) when the implementation
	// is provided inline, or requires more initialization than simply
	// invoking the constructor.
	binder.bind(SettingsStore.class);
	binder.bind(EventLogger.class);
	binder.bind(MoneyRepresentation.class);
}
 
开发者ID:onyxbits,项目名称:TradeTrax,代码行数:12,代码来源:AppModule.java

示例6: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
	// binder.bind(MyServiceInterface.class, MyServiceImpl.class);

	// Make bind() calls on the binder object to define most IoC services.
	// Use service builder methods (example below) when the implementation
	// is provided inline, or requires more initialization than simply
	// invoking the constructor.
	binder.bind(SearchBrokerService.class, SearchBrokerServiceDefaultImpl.class);
}
 
开发者ID:Sotera,项目名称:graphene-walker,代码行数:10,代码来源:AppModule.java

示例7: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
	binder.bind(EntityServerRS.class, EntityServerRSImpl.class);
	binder.bind(GraphmlServerRS.class, GraphmlServerRSImpl.class);
	// binder.bind(EventServerRS.class, EventServerRSImpl.class);
	//binder.bind(LedgerFreeTextRS.class, LedgerFreeTextRSImpl.class);
	binder.bind(UDSessionRS.class, UDSessionRSImpl.class); // MFM
	binder.bind(ExportGraphRS.class, ExportGraphRSImpl.class);
	binder.bind(DataSourceServerRS.class, DataSourceServerRSImpl.class);
	binder.bind(CSGraphServerRS.class, CSGraphServerRSImpl.class);

}
 
开发者ID:Sotera,项目名称:graphene-walker,代码行数:12,代码来源:AppRestModule.java

示例8: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
	binder.bind(CombinedDAO.class, CombinedDAOWalkerImpl.class);
	binder.bind(ReportPopulator.class, ReportPopulatorImpl.class);
	binder.bind(RoleDAO.class, SimpleRoleDAOImpl.class);
	binder.bind(PermissionDAO.class, SimplePermissionDAOImpl.class);

	binder.bind(EntityRefDAO.class, EntityRefDAOImpl.class).scope(
			ScopeConstants.PERTHREAD);

	binder.bind(EntityDAO.class, EntityDAOImpl.class);

	binder.bind(IdTypeDAO.class, IdTypeDAOSQLImpl.class);

	binder.bind(TransactionDAO.class, TransactionDAOSQLImpl.class).withId(
			"Primary");

	// TODO: Make this into a service in the core we can contribute to (for
	// distributed configuration!)
	binder.bind(DataSourceListDAO.class, DataSourceListDAOImpl.class);
	binder.bind(Funnel.class, WalkerEntityLightFunnel.class).withMarker(
			EntityLightFunnelMarker.class);

	binder.bind(IMemoryDB.class, WalkerMemoryDB.class);
	// binder.bind(Funnel.class, DefaultEntityLightFunnel.class).withMarker(
	// EntityLightFunnelMarker.class);
	// Wiring for user services
	binder.bind(EntityGraphDAO.class, EntityGraphDAONeo4JEImpl.class);
	binder.bind(GroupDAO.class, GroupDAONeo4JEImpl.class);

	binder.bind(WorkspaceDAO.class, WorkspaceDAONeo4JEImpl.class);
	binder.bind(UserDAO.class, UserDAONeo4JEImpl.class).eagerLoad();
	binder.bind(UserWorkspaceDAO.class, UserWorkspaceDAONeo4JEImpl.class);
	binder.bind(UserGroupDAO.class, UserGroupDAONeo4JEImpl.class);
	binder.bind(GroupFunnel.class);
	binder.bind(UserFunnel.class);
	binder.bind(WorkspaceFunnel.class);
}
 
开发者ID:Sotera,项目名称:graphene-walker,代码行数:38,代码来源:WalkerDAOModule.java

示例9: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
	// Make bind() calls on the binder object to define most IoC services.
	// Use service builder methods (example below) when the implementation
	// is provided inline, or requires more initialization than simply
	// invoking the constructor.
	// binder.bind(JavaDiskCache.class);
	binder.bind(JDBCUtil.class).eagerLoad();
}
 
开发者ID:Sotera,项目名称:graphene-walker,代码行数:9,代码来源:DTOGenerationModule.java

示例10: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
	binder.bind(EventGraphBuilder.class, EventGraphBuilderWalkerImpl.class)
		.withId("Event");

	binder.bind(PropertyGraphBuilder.class, PropertyGraphBuilderWalkerImpl.class)
		.withId("Property");

	binder.bind(HyperGraphBuilder.class, EventGraphBuilderWalkerImpl.class)
		.withId("HyperEvent").eagerLoad()
		.scope(ScopeConstants.PERTHREAD);
	
	binder.bind(HyperGraphBuilder.class, PropertyGraphBuilderWalkerImpl.class)
		.withId("HyperProperty").eagerLoad()
		.scope(ScopeConstants.PERTHREAD);
}
 
开发者ID:Sotera,项目名称:graphene-walker,代码行数:16,代码来源:GraphServerModule.java

示例11: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder)
{
    // binder.bind(MyServiceInterface.class, MyServiceImpl.class);
    
    // Make bind() calls on the binder object to define most IoC services.
    // Use service builder methods (example below) when the implementation
    // is provided inline, or requires more initialization than simply
    // invoking the constructor.
}
 
开发者ID:wso2as-developer,项目名称:tapestry-samples,代码行数:10,代码来源:AppModule.java

示例12: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder)
{
    // binder.bind(MyServiceInterface.class, MyServiceImpl.class);

    // Make bind() calls on the binder object to define most IoC services.
    // Use service builder methods (example below) when the implementation
    // is provided inline, or requires more initialization than simply
    // invoking the constructor.
}
 
开发者ID:wso2as-developer,项目名称:tapestry-samples,代码行数:10,代码来源:AppModule.java

示例13: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
/**
 * Auto build services
 * 
 * @category AutoBuild ApplicationConfigurationSource CLIOptionSource
 */
@SuppressWarnings("unchecked")
public static void bind(final ServiceBinder binder) {
	binder.bind(ApplicationConfigurationSource.class,
			ApplicationConfigurationSourceImpl.class);

	/*
	 * Note that we MUST mark this with the Builtin annotation
	 */
	binder.bind(CLIOptionSource.class, CLIOptionSourceImpl.class)
			.withMarker(Builtin.class);

}
 
开发者ID:alessiogambi,项目名称:tapestry5-cli,代码行数:18,代码来源:CLIModule.java

示例14: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
    binder.bind(DeferredService.class, DeferredServiceImpl.class);
}
 
开发者ID:bootique,项目名称:bootique-tapestry,代码行数:4,代码来源:TestApp3Module.java

示例15: bind

import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
    binder.bind(T1.class, T1.class);
}
 
开发者ID:bootique,项目名称:bootique-tapestry,代码行数:4,代码来源:GuiceObjectProviderIT.java


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