本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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.
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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);
}
示例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.
}
示例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.
}
示例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);
}
示例14: bind
import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
binder.bind(DeferredService.class, DeferredServiceImpl.class);
}
示例15: bind
import org.apache.tapestry5.ioc.ServiceBinder; //导入依赖的package包/类
public static void bind(ServiceBinder binder) {
binder.bind(T1.class, T1.class);
}