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


Java Requires类代码示例

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


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

示例1: CryptoServiceSingleton

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
@SuppressWarnings("UnusedDeclaration")
public CryptoServiceSingleton(@Requires ApplicationConfiguration configuration) {
    this(
            configuration.getOrDie(ApplicationConfiguration.APPLICATION_SECRET),
            Hash.valueOf(configuration.getWithDefault("crypto.default-hash", "MD5")),
            configuration.getIntegerWithDefault("crypto.aes.key-size", 128),
            configuration.getWithDefault("crypto.aes.transformation",  AES_CBC_ALGORITHM),
            configuration.getIntegerWithDefault("crypto.aes.iterations", 20));
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:10,代码来源:CryptoServiceSingleton.java

示例2: RequiredScopesInterceptor

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public RequiredScopesInterceptor(@Requires final TokenIntrospectionService tokenIntrospection,
                                 @Requires final ApplicationConfiguration applicationConfiguration) {
    this(tokenIntrospection, applicationConfiguration.getWithDefault("oauth2-protection.realm", "no-name"));
}
 
开发者ID:sauthieg,项目名称:wisdom-oauth2-protection,代码行数:5,代码来源:RequiredScopesInterceptor.java

示例3: ProtectionBootstrap

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public ProtectionBootstrap(@Requires final ApplicationConfiguration configuration,
                           @Requires final DeclarationBuilderService builder) {
    this.configuration = configuration;
    this.builder = builder;
}
 
开发者ID:sauthieg,项目名称:wisdom-oauth2-protection,代码行数:6,代码来源:ProtectionBootstrap.java

示例4: FileController

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public FileController(@Requires ApplicationConfiguration configuration) {
    root = new File(configuration.getBaseDir(), "uploads");
    root.mkdirs();
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:5,代码来源:FileController.java

示例5: XMLFilterUsingConfiguration

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public XMLFilterUsingConfiguration(@Requires ApplicationConfiguration c) {
   super(c.getConfiguration("myfilter"));
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:4,代码来源:XMLFilterUsingConfiguration.java

示例6: BalancerMember2

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public BalancerMember2(@Requires ApplicationConfiguration configuration) {
    super(configuration.getConfiguration("member"));
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:4,代码来源:BalancerMember2.java

示例7: HomeController

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public HomeController(@Requires JugSupport jugSupport) {
    super(jugSupport);
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:4,代码来源:HomeController.java

示例8: EventsController

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public EventsController(@Requires JugSupport jugSupport) {
    super(jugSupport);
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:4,代码来源:EventsController.java

示例9: AdminPartnerController

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public AdminPartnerController(@Requires JugSupport jugSupport) {
    super(jugSupport);
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:4,代码来源:AdminPartnerController.java

示例10: BaseVaadinServlet

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public BaseVaadinServlet(@Requires HttpService httpService) throws ServletException, NamespaceException {
    httpService.registerServlet("/vaadin", this, null, null);
}
 
开发者ID:peergreen,项目名称:vaadin-osgi,代码行数:4,代码来源:BaseVaadinServlet.java

示例11: ConfBasedCorsFilter

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
/**
 * Creates an instance of the {@link org.wisdom.framework.filters.ConfBasedCorsFilter}.
 * @param router the router.
 */
public ConfBasedCorsFilter(@Requires Router router) {
    super(router);
}
 
开发者ID:wisdom-framework,项目名称:wisdom,代码行数:8,代码来源:ConfBasedCorsFilter.java


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