Class CdiConfiguration

java.lang.Object
org.apache.wicket.cdi.CdiConfiguration

public class CdiConfiguration extends Object
Configures CDI integration
Author:
igor
  • Constructor Details

  • Method Details

    • getPropagation

    • setPropagation

    • getFallbackBeanManager

      public jakarta.enterprise.inject.spi.BeanManager getFallbackBeanManager()
    • setFallbackBeanManager

      public CdiConfiguration setFallbackBeanManager(jakarta.enterprise.inject.spi.BeanManager fallbackBeanManager)
      Sets a BeanManager that should be used if all strategies to lookup a BeanManager fail. This can be used in scenarios where you do not have JNDI available and do not want to bootstrap the CDI provider. It should be noted that the fallback BeanManager can only be used within the context of a Wicket application (ie. Application.get() should return the application that was configured with this CdiConfiguration).
      Parameters:
      fallbackBeanManager -
      Returns:
      this instance
    • configure

      public void configure(Application application)
      Configures the specified application
      Parameters:
      application -
    • get

      public static CdiConfiguration get(Application application)