• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ComponentClassResolver类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: testGetRegistry

import org.apache.tapestry5.services.ComponentClassResolver; //导入依赖的package包/类
@Test
public void testGetRegistry() {
    BQRuntime runtime = app.app()
            .module(JettyModule.class)
            .module(TapestryModule.class)
            .property("bq.tapestry.appPackage", "no.such.package")
            .start();

    Optional<Registry> registry = runtime.getInstance(TapestryEnvironment.class).getRegistry();
    Assert.assertTrue(registry.isPresent());
    assertNotNull(registry.get().getService(ComponentClassResolver.class));
}
 
开发者ID:bootique,项目名称:bootique-tapestry,代码行数:13,代码来源:TapestryServletEnvironmentIT.java


示例2: ProtectedPagesService

import org.apache.tapestry5.services.ComponentClassResolver; //导入依赖的package包/类
/**
 * @param componentClassResolver injected
 * @param antiCsrfMode symbol {@link CsrfConstants#CSRF_PROTECTION_MODE}
 */
public ProtectedPagesService(ComponentClassResolver componentClassResolver,
    @Value("${" + CsrfConstants.CSRF_PROTECTION_MODE + "}") CsrfProtectionMode antiCsrfMode)
{
    this.componentClassResolver = componentClassResolver;
    this.antiCsrfMode = antiCsrfMode;
}
 
开发者ID:porscheinformatik,项目名称:tapestry-csrf-protection,代码行数:11,代码来源:ProtectedPagesService.java


示例3: initApplication

import org.apache.tapestry5.services.ComponentClassResolver; //导入依赖的package包/类
@Startup
public static void initApplication(RegistryShutdownHub shutdownHub, ConfigurationService service, EpgDataService epgService, UserService userService, VdrDataService vdrService,
        ComponentClassResolver componentClassResolver, ComponentSource componentSource) {

    shutdownHub.addRegistryShutdownListener(new Runnable() {

        public void run() {
            service.shutdown();
        }
    });

    service.triggerInitialization();

    if (!service.isUseEpgd() && (service.getEpgVdrUuuid() != null)) {
        // Update database periodically (2 times a day)
        scheduler.scheduleAtFixedRate(new Runnable() {
            @Override
            public void run() {
                epgService.updateInternalEpgData(service.getEpgVdrUuuid());
            }
        }, 0, 12, TimeUnit.HOURS);
    }
    
    // create default admin user, if he does not exists
    User user = new User();
    if (!userService.existsUser("admin")) {
        user.setUsername("admin");
        user.setPassword("jonglisto");
        user = userService.createUser(user);
    }
                    
    // set default permission. Permission to do everything
    userService.addIndividualPermission("admin", "*", "admin_permission");
    
    // get all channel groups and update the permission
    service.getConfiguredViews().values() //
        .stream() //
        .forEach(v -> {
            System.err.println("Check View: " + v.getDisplayName());
            try {
                vdrService.getGroups(v.getChannelVdr().get()).get() //
                    .stream() //
                    .forEach(g -> {
                        System.err.println("Check Group: " + g);
                        userService.addPermission("channel:group:" + g, "perm_channel_group");
                    });
            } catch (Exception e) {
                System.err.println(e);
                // do nothing
            }
        });
    
    componentClassResolver.getPageNames().stream().forEach(s -> {
        // preload all pages
        componentSource.getPage(s);
    });
}
 
开发者ID:Zabrimus,项目名称:vdr-jonglisto,代码行数:58,代码来源:AppModule.java


示例4: addLibraryMapping

import org.apache.tapestry5.services.ComponentClassResolver; //导入依赖的package包/类
@Contribute(ComponentClassResolver.class)
public static void addLibraryMapping(final Configuration<LibraryMapping> configuration) {
  configuration.add(new LibraryMapping("react", "de.eddyson.tapestry.react"));
}
 
开发者ID:eddyson-de,项目名称:tapestry-react,代码行数:5,代码来源:ReactModule.java


示例5: contributeComponentClassResolver

import org.apache.tapestry5.services.ComponentClassResolver; //导入依赖的package包/类
@Contribute(ComponentClassResolver.class)
public static void contributeComponentClassResolver(final Configuration<LibraryMapping> configuration) {
	configuration.add(new LibraryMapping("oauth", "org.pac.tapestry.oauth"));
}
 
开发者ID:vladaspasic,项目名称:tapestry-oauth,代码行数:5,代码来源:OAuthModule.java


示例6: addLibraryMapping

import org.apache.tapestry5.services.ComponentClassResolver; //导入依赖的package包/类
/**
 * Contributes this module's to Tapestry as a component library.
 */
@Contribute(ComponentClassResolver.class)
public static void addLibraryMapping(Configuration<LibraryMapping> configuration) {
	configuration.add(new LibraryMapping(RssConstants.LIBRARY_MAPPING_PREFIX, "br.com.arsmachina.tapestry_rss"));
}
 
开发者ID:thiagohp,项目名称:tapestry-rss,代码行数:8,代码来源:RssModule.java


示例7: addLibraryMapping

import org.apache.tapestry5.services.ComponentClassResolver; //导入依赖的package包/类
/**
 * Contributes this module's to Tapestry as a component library (even if it actually doesn't
 * have any actual components, just one mixin).
 */
@Contribute(ComponentClassResolver.class)
public static void addLibraryMapping(Configuration<LibraryMapping> configuration) {
	configuration.add(new LibraryMapping("syntax-highlighter", "br.com.arsmachina.tapestry_syntax_highlighter"));
}
 
开发者ID:thiagohp,项目名称:tapestry-syntax-highlighter,代码行数:9,代码来源:SyntaxHighlighterModule.java


示例8: contributeComponentClassResolver

import org.apache.tapestry5.services.ComponentClassResolver; //导入依赖的package包/类
@Contribute(ComponentClassResolver.class)
public void contributeComponentClassResolver(Configuration<LibraryMapping> config) {
	config.add(new LibraryMapping(MODULE_PREFIX, "com.jsportal.newrelic4tapestry5"));
}
 
开发者ID:joostschouten,项目名称:newrelic4tapestry5,代码行数:5,代码来源:NewRelic4Tapestry5AppModule.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DefaultJDOMFactory类代码示例发布时间:2022-05-23
下一篇:
Java Reducer类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap