
com.giffing.wicket.spring.boot.starter.WicketBootWebApplicationAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wicket-spring-boot-starter Show documentation
Show all versions of wicket-spring-boot-starter Show documentation
Enables and configures Apache Wicket from within a Spring Boot
Application. Used **only** in combination with Spring Boot.
package com.giffing.wicket.spring.boot.starter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.giffing.wicket.spring.boot.starter.app.WicketBootSecuredWebApplication;
import com.giffing.wicket.spring.boot.starter.app.WicketBootStandardWebApplication;
import com.giffing.wicket.spring.boot.starter.app.WicketBootWebApplication;
/**
* Configures the standard {@link WicketBootWebApplication} configuration
* without security options.
*
* The {@link WicketBootStandardWebApplication} will only be activated if there
* is no other {@link WicketBootWebApplication} present and if there is not
* {@link WicketBootSecuredWebApplication} present.
*
* @author Marc Giffing
*
*/
@Configuration
@ConditionalOnMissingBean({WicketBootSecuredWebApplication.class, WicketBootWebApplication.class})
public class WicketBootWebApplicationAutoConfiguration {
@Bean
public WicketBootStandardWebApplication wicketBootWebApplication() {
return new WicketBootStandardWebApplication();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy