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

com.guicedee.guicedservlets.swagger.GuicedSwaggerConfig Maven / Gradle / Ivy

There is a newer version: 1.2.2.1-jre17
Show newest version
package com.guicedee.guicedservlets.swagger;

import com.guicedee.guicedservlets.rest.internal.JaxRsPackageRegistrations;
import io.swagger.v3.oas.integration.SwaggerConfiguration;

public class GuicedSwaggerConfig>
{

	private SwaggerConfiguration configuration;

	public GuicedSwaggerConfig()
	{
		//Not Used
	}

	public SwaggerConfiguration getConfiguration()
	{
		return configuration;
	}

	public GuicedSwaggerConfig setConfiguration(SwaggerConfiguration configuration)
	{
		this.configuration = configuration;
		if (configuration != null)
		{
			if (configuration.getResourcePackages() == null)
			{
				configuration.setResourcePackages(JaxRsPackageRegistrations.getPackageNames());
			}
			else
			{
				configuration.getResourcePackages()
				             .addAll(JaxRsPackageRegistrations.getPackageNames());
			}
		}
		return this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy