本文整理汇总了Java中lombok.experimental.Delegate类的典型用法代码示例。如果您正苦于以下问题:Java Delegate类的具体用法?Java Delegate怎么用?Java Delegate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Delegate类属于lombok.experimental包,在下文中一共展示了Delegate类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getUpdatesOfPrint
import lombok.experimental.Delegate; //导入依赖的package包/类
private int getUpdatesOfPrint(String id) {
return idUpdatesMap.computeIfAbsent(id, k -> {
VxmlParameters localParameters = new VxmlParameters() {
@Delegate(excludes=Uri.class)
VxmlParameters d = parameters;
public String getUri() {
return gvpUri;
};
};
VxmlClientGetVoiceprint getVoicePrint = new VxmlClientGetVoiceprint(localParameters);
VxmlRequestTask gvpTask = new VxmlRequestTask(k, "");
gvpTask.setKey(k);
getVoicePrint.sendAndReceive(gvpTask);
Iterator<SummaryGetVoiceprint> i = getVoicePrint.summaryGetVoiceprintMap.values().iterator();
if (i.hasNext()) {
return i.next().getPrintUpdates().get(0);
} else {
return -1;
}
});
}
示例2: findDelegatesAndMarkAsHandled
import lombok.experimental.Delegate; //导入依赖的package包/类
public static Annotation[] findDelegatesAndMarkAsHandled(EclipseNode fieldNode) {
List<Annotation> delegates = new ArrayList<Annotation>();
for (EclipseNode child : fieldNode.down()) {
if (annotationTypeMatches(Delegate.class, child)) {
Annotation delegate = (Annotation)child.get();
PatchDelegate.markHandled(delegate);
delegates.add(delegate);
}
}
return delegates.toArray(EMPTY_ANNOTATIONS_ARRAY);
}
示例3: getLocalLogCollector
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = HasServiceSettings.class)
LogCollector getLocalLogCollector() {
return localLogCollectorFactory.build(this, new String[] {
"/var/log/upstart/redis-server.log",
"/var/log/redis/redis-server.log"
});
}
示例4: getLocalLogCollector
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = HasServiceSettings.class)
LogCollector getLocalLogCollector() {
return localLogCollectorFactory.build(this, new String[]{
"/var/log/upstart/spinnaker-monitoring.log",
"/var/log/spinnaker-monitoring/"
});
}
示例5: getLocalLogCollector
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = HasServiceSettings.class)
LogCollector getLocalLogCollector() {
return localLogCollectorFactory.build(this, new String[] {
"/var/log/upstart/apache.log",
"/var/log/apache/"
});
}
示例6: handle
import lombok.experimental.Delegate; //导入依赖的package包/类
public void handle(AnnotationValues<Delegate> annotation, Annotation ast, EclipseNode annotationNode) {
handleExperimentalFlagUsage(annotationNode, ConfigurationKeys.DELEGATE_FLAG_USAGE, "@Delegate");
}
示例7: getBar
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate
public abstract Bar getBar();
示例8: staticMethod
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate private static final java.lang.Runnable staticMethod() {
return null;
}
示例9: getLocalLogCollector
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = HasServiceSettings.class)
LogCollector getLocalLogCollector() {
return localLogCollectorFactory.build(this);
}
示例10: getLogCollector
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = HasServiceSettings.class)
public DistributedLogCollector getLogCollector() {
return getLogCollectorFactory().build(this);
}
示例11: webdriver
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate
public WebdriverActions webdriver() {
return new WebdriverActions(getDriver());
}
示例12: getProxy
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate
private BlockProxy<BlockCustom> getProxy()
{
return proxy == null ? BlockProxy.<BlockCustom>dummy() : proxy;
}
示例13: getProxy
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = Exclusions.class)
private BlockProxy<BlockCustomSlab> getProxy()
{
return proxy == null ? BlockProxy.<BlockCustomSlab> dummy() : proxy;
}
示例14: getProxy
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = Exclusions.class)
private BlockProxy<BlockCustomFence> getProxy()
{
return proxy == null ? BlockProxy.<BlockCustomFence> dummy() : proxy;
}
示例15: getProxy
import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = Exclusions.class)
private BlockProxy<BlockCustomWall> getProxy()
{
return proxy == null ? BlockProxy.<BlockCustomWall> dummy() : proxy;
}