本文整理汇总了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));
}
示例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"));
}
示例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;
}
示例4: FileController
import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public FileController(@Requires ApplicationConfiguration configuration) {
root = new File(configuration.getBaseDir(), "uploads");
root.mkdirs();
}
示例5: XMLFilterUsingConfiguration
import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public XMLFilterUsingConfiguration(@Requires ApplicationConfiguration c) {
super(c.getConfiguration("myfilter"));
}
示例6: BalancerMember2
import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public BalancerMember2(@Requires ApplicationConfiguration configuration) {
super(configuration.getConfiguration("member"));
}
示例7: HomeController
import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public HomeController(@Requires JugSupport jugSupport) {
super(jugSupport);
}
示例8: EventsController
import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public EventsController(@Requires JugSupport jugSupport) {
super(jugSupport);
}
示例9: AdminPartnerController
import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public AdminPartnerController(@Requires JugSupport jugSupport) {
super(jugSupport);
}
示例10: BaseVaadinServlet
import org.apache.felix.ipojo.annotations.Requires; //导入依赖的package包/类
public BaseVaadinServlet(@Requires HttpService httpService) throws ServletException, NamespaceException {
httpService.registerServlet("/vaadin", this, null, null);
}
示例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);
}