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

dev.dsf.fhir.webservice.base.AbstractDelegatingBasicService Maven / Gradle / Ivy

package dev.dsf.fhir.webservice.base;

import java.util.Objects;

import org.springframework.beans.factory.InitializingBean;

import dev.dsf.fhir.authentication.CurrentIdentityProvider;

public class AbstractDelegatingBasicService extends AbstractBasicService
		implements BasicService, InitializingBean
{
	protected final S delegate;

	public AbstractDelegatingBasicService(S delegate)
	{
		this.delegate = delegate;
	}

	@Override
	public void afterPropertiesSet() throws Exception
	{
		Objects.requireNonNull(delegate, "delegate");
	}

	@Override
	public void setCurrentIdentityProvider(CurrentIdentityProvider currentIdentityProvider)
	{
		super.setCurrentIdentityProvider(currentIdentityProvider);
		delegate.setCurrentIdentityProvider(currentIdentityProvider);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy