lombok.experimental.Delegate Java Examples
The following examples show how to use
lombok.experimental.Delegate.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LiiklusPluginManager.java From liiklus with MIT License | 6 votes |
@Override protected VersionManager createVersionManager() { var versionManager = super.createVersionManager(); class DelegatingVersionManager implements VersionManager { @Delegate final VersionManager delegate = versionManager; } return new DelegatingVersionManager() { @Override public boolean checkVersionConstraint(String version, String constraint) { // TODO https://github.com/pf4j/pf4j/issues/367 return "*".equals(constraint) || super.checkVersionConstraint(version, constraint); } }; }
Example #2
Source File: LocalDebianMonitoringDaemonService.java From halyard with Apache License 2.0 | 5 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build( this, new String[] { "/var/log/upstart/spinnaker-monitoring.log", "/var/log/spinnaker-monitoring/" }); }
Example #3
Source File: HandleGetter.java From EasyMPermission with MIT License | 5 votes |
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); }
Example #4
Source File: LocalDebianGateService.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this); }
Example #5
Source File: DelegateOnMethodsTest.java From lombok-intellij-plugin with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Delegate public abstract Bar getBar();
Example #6
Source File: ForwardingSpan.java From opentracing-toolbox with MIT License | 4 votes |
@Delegate protected abstract Span delegate();
Example #7
Source File: DelegateOnStatic.java From EasyMPermission with MIT License | 4 votes |
@Delegate private static final java.lang.Runnable staticMethod() { return null; }
Example #8
Source File: DelegateOnMethods.java From EasyMPermission with MIT License | 4 votes |
@Delegate public abstract Bar getBar();
Example #9
Source File: HandleDelegate.java From EasyMPermission with MIT License | 4 votes |
public void handle(AnnotationValues<Delegate> annotation, Annotation ast, EclipseNode annotationNode) { handleExperimentalFlagUsage(annotationNode, ConfigurationKeys.DELEGATE_FLAG_USAGE, "@Delegate"); }
Example #10
Source File: DefaultHttpHeaders.java From logbook with MIT License | 4 votes |
@Delegate @SuppressWarnings("unused") private List<T> delegate() { return list; }
Example #11
Source File: DefaultHttpHeaders.java From logbook with MIT License | 4 votes |
@Delegate @SuppressWarnings("unused") private Map<String, List<String>> delegate() { return headers; }
Example #12
Source File: ForwardingSpan.java From riptide with MIT License | 4 votes |
@Delegate @Override protected abstract Span delegate();
Example #13
Source File: LocalDebianOrcaService.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this); }
Example #14
Source File: LocalDebianEchoService.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this); }
Example #15
Source File: LocalDebianFiatService.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this); }
Example #16
Source File: LocalDebianDeckService.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build( this, new String[] {"/var/log/upstart/apache.log", "/var/log/apache/"}); }
Example #17
Source File: LocalDebianKayentaService.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this); }
Example #18
Source File: LocalDebianClouddriverService.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this); }
Example #19
Source File: LocalDebianRoscoService.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this); }
Example #20
Source File: LocalDebianIgorService.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this); }
Example #21
Source File: LocalDebianFront50Service.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this); }
Example #22
Source File: LocalDebianRedisService.java From halyard with Apache License 2.0 | 4 votes |
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build( this, new String[] {"/var/log/upstart/redis-server.log", "/var/log/redis/redis-server.log"}); }
Example #23
Source File: DelegateOnMethods.java From EasyMPermission with MIT License | votes |
public abstract @Delegate Bar getBar();