本文整理汇总了Java中be.objectify.deadbolt.java.cache.HandlerCache类的典型用法代码示例。如果您正苦于以下问题:Java HandlerCache类的具体用法?Java HandlerCache怎么用?Java HandlerCache使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HandlerCache类属于be.objectify.deadbolt.java.cache包,在下文中一共展示了HandlerCache类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: bindings
import be.objectify.deadbolt.java.cache.HandlerCache; //导入依赖的package包/类
@Override
public Seq<Binding<?>> bindings(Environment environment, Configuration configuration) {
return seq(
bind(AuthorizationHandler.class).toSelf().eagerly(),
bind(HandlerCache.class).to(DeadboltCache.class).eagerly()
);
}
示例2: bindings
import be.objectify.deadbolt.java.cache.HandlerCache; //导入依赖的package包/类
@Override
public Seq<Binding<?>> bindings(final Environment environment,
final Configuration configuration)
{
return seq(bind(TemplateFailureListener.class).to(MyCustomTemplateFailureListener.class).in(Singleton.class),
bind(HandlerCache.class).to(MyHandlerCache.class).in(Singleton.class));
}
示例3: CustomRestrictAction
import be.objectify.deadbolt.java.cache.HandlerCache; //导入依赖的package包/类
@Inject
public CustomRestrictAction(final JavaAnalyzer analyzer,
final SubjectCache subjectCache,
final HandlerCache handlerCache,
final Configuration config,
final ExecutionContextProvider ecProvider)
{
this.analyzer = analyzer;
this.subjectCache = subjectCache;
this.handlerCache = handlerCache;
this.config = config;
this.ecProvider = ecProvider;
}
示例4: bindings
import be.objectify.deadbolt.java.cache.HandlerCache; //导入依赖的package包/类
@Override
public Seq<Binding<?>> bindings(final Environment environment, final Configuration configuration) {
return seq(bind(HandlerCache.class).to(MyHandlerCache.class).in(Singleton.class));
}
示例5: bindings
import be.objectify.deadbolt.java.cache.HandlerCache; //导入依赖的package包/类
@Override
public Seq<Binding<?>> bindings(final Environment environment,
final Configuration configuration) {
return seq(bind(HandlerCache.class).to(MyHandlerCache.class).in(Singleton.class));
}
示例6: configure
import be.objectify.deadbolt.java.cache.HandlerCache; //导入依赖的package包/类
@Override
protected void configure() {
bind(HandlerCache.class).to(MyHandlerCache.class).in(Singleton.class);
}