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


Java Delegate类代码示例

本文整理汇总了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;
		}
	});
}
 
开发者ID:Auraya,项目名称:armorvox-client,代码行数:26,代码来源:VxmlClientCrossMatch.java

示例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);
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:12,代码来源:HandleGetter.java

示例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"
  });
}
 
开发者ID:spinnaker,项目名称:halyard,代码行数:8,代码来源:LocalDebianRedisService.java

示例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/"
  });
}
 
开发者ID:spinnaker,项目名称:halyard,代码行数:8,代码来源:LocalDebianMonitoringDaemonService.java

示例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/"
  });
}
 
开发者ID:spinnaker,项目名称:halyard,代码行数:8,代码来源:LocalDebianDeckService.java

示例6: handle

import lombok.experimental.Delegate; //导入依赖的package包/类
public void handle(AnnotationValues<Delegate> annotation, Annotation ast, EclipseNode annotationNode) {
	handleExperimentalFlagUsage(annotationNode, ConfigurationKeys.DELEGATE_FLAG_USAGE, "@Delegate");
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:4,代码来源:HandleDelegate.java

示例7: getBar

import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate
public abstract Bar getBar();
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:3,代码来源:DelegateOnMethods.java

示例8: staticMethod

import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate private static final java.lang.Runnable staticMethod() {
	return null;
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:4,代码来源:DelegateOnStatic.java

示例9: getLocalLogCollector

import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = HasServiceSettings.class)
LogCollector getLocalLogCollector() {
  return localLogCollectorFactory.build(this);
}
 
开发者ID:spinnaker,项目名称:halyard,代码行数:5,代码来源:LocalDebianFront50Service.java

示例10: getLogCollector

import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = HasServiceSettings.class)
public DistributedLogCollector getLogCollector() {
  return getLogCollectorFactory().build(this);
}
 
开发者ID:spinnaker,项目名称:halyard,代码行数:5,代码来源:KubernetesEchoService.java

示例11: webdriver

import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate
public WebdriverActions webdriver() {
    return new WebdriverActions(getDriver());
}
 
开发者ID:lithiumtech,项目名称:mineraloil-selenium,代码行数:5,代码来源:Driver.java

示例12: getProxy

import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate
private BlockProxy<BlockCustom> getProxy()
{
    return proxy == null ? BlockProxy.<BlockCustom>dummy() : proxy;
}
 
开发者ID:tterrag1098,项目名称:CustomThings,代码行数:6,代码来源:BlockCustom.java

示例13: getProxy

import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = Exclusions.class)
private BlockProxy<BlockCustomSlab> getProxy()
{
    return proxy == null ? BlockProxy.<BlockCustomSlab> dummy() : proxy;
}
 
开发者ID:tterrag1098,项目名称:CustomThings,代码行数:6,代码来源:BlockCustomSlab.java

示例14: getProxy

import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = Exclusions.class)
private BlockProxy<BlockCustomFence> getProxy()
{
    return proxy == null ? BlockProxy.<BlockCustomFence> dummy() : proxy;
}
 
开发者ID:tterrag1098,项目名称:CustomThings,代码行数:6,代码来源:BlockCustomFence.java

示例15: getProxy

import lombok.experimental.Delegate; //导入依赖的package包/类
@Delegate(excludes = Exclusions.class)
private BlockProxy<BlockCustomWall> getProxy()
{
    return proxy == null ? BlockProxy.<BlockCustomWall> dummy() : proxy;
}
 
开发者ID:tterrag1098,项目名称:CustomThings,代码行数:6,代码来源:BlockCustomWall.java


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