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


Java Decorator类代码示例

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


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

示例1: PipelineProcessorMessageDecorator

import org.graylog2.decorators.Decorator; //导入依赖的package包/类
@Inject
public PipelineProcessorMessageDecorator(PipelineInterpreter pipelineInterpreter,
                                         ConfigurationStateUpdater pipelineStateUpdater,
                                         @Assisted Decorator decorator) {
    this.pipelineInterpreter = pipelineInterpreter;
    this.pipelineStateUpdater = pipelineStateUpdater;
    final String pipelineId = (String)decorator.config().get(CONFIG_FIELD_PIPELINE);
    if (Strings.isNullOrEmpty(pipelineId)) {
        this.pipelines = ImmutableSet.of();
    } else {
        this.pipelines = ImmutableSet.of(pipelineId);
    }
}
 
开发者ID:Graylog2,项目名称:graylog-plugin-pipeline-processor,代码行数:14,代码来源:PipelineProcessorMessageDecorator.java

示例2: DeloreanDecorator

import org.graylog2.decorators.Decorator; //导入依赖的package包/类
@Inject
public DeloreanDecorator(@Assisted Decorator decorator) {
	this.decorator = decorator;
}
 
开发者ID:alcampos,项目名称:graylog-plugin-alert-condition-delorean,代码行数:5,代码来源:DeloreanDecorator.java

示例3: create

import org.graylog2.decorators.Decorator; //导入依赖的package包/类
@Override
DeloreanDecorator create(Decorator decorator);
 
开发者ID:alcampos,项目名称:graylog-plugin-alert-condition-delorean,代码行数:3,代码来源:DeloreanDecorator.java

示例4: ConditionalCountDecorator

import org.graylog2.decorators.Decorator; //导入依赖的package包/类
@Inject
public ConditionalCountDecorator(@Assisted Decorator decorator) {
	this.decorator = decorator;
}
 
开发者ID:alcampos,项目名称:graylog-plugin-alert-conditional-count,代码行数:5,代码来源:ConditionalCountDecorator.java

示例5: create

import org.graylog2.decorators.Decorator; //导入依赖的package包/类
@Override
ConditionalCountDecorator create(Decorator decorator);
 
开发者ID:alcampos,项目名称:graylog-plugin-alert-conditional-count,代码行数:3,代码来源:ConditionalCountDecorator.java

示例6: create

import org.graylog2.decorators.Decorator; //导入依赖的package包/类
@Override
PipelineProcessorMessageDecorator create(Decorator decorator);
 
开发者ID:Graylog2,项目名称:graylog-plugin-pipeline-processor,代码行数:3,代码来源:PipelineProcessorMessageDecorator.java


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