@RequiredArgsConstructor private static class DelegatingDockerClientConfig implements DockerClientConfig { @Delegate final DockerClientConfig dockerClientConfig; } }
/** * Wraps a {@link DatasetsFinder} into an {@link IterableDatasetFinder}. */ @AllArgsConstructor public class IterableDatasetFinderImpl<T extends Dataset> implements IterableDatasetFinder<T> { @Delegate private final DatasetsFinder<T> datasetFinder; @Override public Iterator<T> getDatasetsIterator() throws IOException { return this.datasetFinder.findDatasets().iterator(); } }
@Delegate private final InnerGauge<T> innerGauge; private final MetricContext context;
/** * A {@link Predicate} used to filter entries in a {@link org.apache.gobblin.metastore.StateStore}. * * {@link org.apache.gobblin.metastore.StateStore}s can usually partially push down extensions of this class, so it * is recommended to use bundled {@link StateStorePredicate} extensions as much as possible. */ @RequiredArgsConstructor public class StateStorePredicate implements Predicate<StateStoreEntryManager> { /** * An additional {@link Predicate} for filtering. This predicate is never pushed down. */ @Delegate private final Predicate<StateStoreEntryManager> customPredicate; }
@Delegate private final InnerMeter innerMeter; private final MetricContext context;
@Delegate private final InnerCounter innerCounter;
@Delegate private final InnerTimer innerTimer; private final MetricContext context;
@Delegate private final InnerHistogram innerHistogram;
@Delegate private final Map<Object, Object> props;
@Delegate private final JobCatalog underlying;
@Delegate(excludes = Excludes.class) private final Future<T> delegate = CompletableFuture.completedFuture(null);
public class AuthDelegatingDockerClientConfig implements DockerClientConfig { @Delegate(excludes = DelegateExclusions.class) private DockerClientConfig delegate;
public class AuditLoggingDockerClient implements DockerClient { @Delegate(excludes = InterceptedMethods.class) private final DockerClient wrappedClient;
public class Password implements CharSequence { private @Delegate final String password; private @Getter transient boolean encrypted;
@RequiredArgsConstructor private static class CachingAnnotationMappingDiscoverer implements MappingDiscoverer { private final @Delegate AnnotationMappingDiscoverer delegate; private final Map<String, UriTemplate> templates = new ConcurrentReferenceHashMap<>(); public UriTemplate getMappingAsUriTemplate(Class<?> type, Method method) { String mapping = delegate.getMapping(type, method); return templates.computeIfAbsent(mapping, UriTemplate::new); } }
/** * <p>The old SDK had a KeyRange object, which was just a list of keys. The new SDK drops the KeyRange * in favor of a simple List. Keeping this for backwards compatibility for now, but you should just use * {@code List<Key<T>>} instead.</p> * * @deprecated Use {@code List<Key<T>>} instead. We will drop this class entirely. * @author Jeff Schnitzer <jeff@infohazard.org> */ @RequiredArgsConstructor @Deprecated public class KeyRange<T> implements List<Key<T>> { /** */ @Delegate private final List<Key<T>> raw; }
public class JAXRSApiContext<O> implements APIContext<O>{ @Delegate private final APIContext<O> ctx; public JAXRSApiContext(APIContext<O> ctx){ this.ctx=ctx; } }
public class BlockAccessDelegate implements IBlockAccess { @Delegate protected final IBlockAccess access; public BlockAccessDelegate(IBlockAccess access) { this.access = access; } }
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this, new String[] { "/var/log/upstart/apache.log", "/var/log/apache/" }); }
@Delegate(excludes = HasServiceSettings.class) LogCollector getLocalLogCollector() { return localLogCollectorFactory.build(this, new String[] { "/var/log/upstart/redis-server.log", "/var/log/redis/redis-server.log" }); }