本文整理匯總了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;
}