• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java Requires类的典型用法和代码示例

未分类 6次浏览

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

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

示例1: CryptoServiceSingleton

点赞 2

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

点赞 2

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

点赞 2

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

点赞 2

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

点赞 2

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

点赞 2

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

点赞 2

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public HomeController(@Requires JugSupport jugSupport) {
    super(jugSupport);
}
 

开发者ID:wisdom-framework,
项目名称:wisdom,
代码行数:4,
代码来源:HomeController.java

示例8: EventsController

点赞 2

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public EventsController(@Requires JugSupport jugSupport) {
    super(jugSupport);
}
 

开发者ID:wisdom-framework,
项目名称:wisdom,
代码行数:4,
代码来源:EventsController.java

示例9: AdminPartnerController

点赞 2

import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public AdminPartnerController(@Requires JugSupport jugSupport) {
    super(jugSupport);
}
 

开发者ID:wisdom-framework,
项目名称:wisdom,
代码行数:4,
代码来源:AdminPartnerController.java

示例10: BaseVaadinServlet

点赞 2

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,
%


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)