All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.engine.common.impl.DelegatingBuildContext Maven / Gradle / Ivy

/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright Red Hat Inc. and Hibernate Authors
 */
package org.hibernate.search.engine.common.impl;

import org.hibernate.search.engine.cfg.ConfigurationPropertySource;
import org.hibernate.search.engine.common.resources.impl.EngineThreads;
import org.hibernate.search.engine.common.timing.spi.TimingSource;
import org.hibernate.search.engine.environment.bean.BeanResolver;
import org.hibernate.search.engine.environment.classpath.spi.ClassResolver;
import org.hibernate.search.engine.environment.classpath.spi.ResourceResolver;
import org.hibernate.search.engine.environment.thread.spi.ThreadPoolProvider;
import org.hibernate.search.engine.reporting.FailureHandler;

class DelegatingBuildContext {

	private final RootBuildContext delegate;

	DelegatingBuildContext(RootBuildContext delegate) {
		this.delegate = delegate;
	}

	public ClassResolver classResolver() {
		return delegate.getClassResolver();
	}

	public ResourceResolver resourceResolver() {
		return delegate.getResourceResolver();
	}

	public BeanResolver beanResolver() {
		return delegate.getBeanResolver();
	}

	public ConfigurationPropertySource configurationPropertySource() {
		return delegate.getConfigurationPropertySource();
	}

	public ThreadPoolProvider threadPoolProvider() {
		return delegate.getThreadPoolProvider();
	}

	public FailureHandler failureHandler() {
		return delegate.getFailureHandler();
	}

	public EngineThreads engineThreads() {
		return delegate.getEngineThreads();
	}

	public TimingSource timingSource() {
		return delegate.getTimingSource();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy