Class ConfigurationFactory


  • @ApplicationScoped
    public class ConfigurationFactory
    extends io.jans.service.ApplicationConfigurationFactory
    Version:
    June 15, 2016
    Author:
    Yuriy Zabrovarnyy, Javier Rojas Blum, Yuriy Movchan
    • Field Detail

      • PERSISTENCE_CONFIGURATION_RELOAD_EVENT_TYPE

        public static final String PERSISTENCE_CONFIGURATION_RELOAD_EVENT_TYPE
        See Also:
        Constant Field Values
      • BASE_CONFIGURATION_RELOAD_EVENT_TYPE

        public static final String BASE_CONFIGURATION_RELOAD_EVENT_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConfigurationFactory

        public ConfigurationFactory()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • onServletContextActivation

        public void onServletContextActivation​(@Observes
                                               jakarta.servlet.ServletContext context)
      • initTimer

        public void initTimer()
        Overrides:
        initTimer in class io.jans.service.ApplicationConfigurationFactory
      • reloadConfigurationTimerEvent

        @Asynchronous
        public void reloadConfigurationTimerEvent​(@Observes
                                                  io.jans.service.cdi.event.ConfigurationEvent configurationEvent)
      • getBaseConfiguration

        public io.jans.util.properties.FileConfiguration getBaseConfiguration()
        Specified by:
        getBaseConfiguration in class io.jans.service.ApplicationConfigurationFactory
      • getPersistenceConfiguration

        @Produces
        @ApplicationScoped
        public io.jans.orm.model.PersistenceConfiguration getPersistenceConfiguration()
      • getAppConfiguration

        @Produces
        @ApplicationScoped
        public io.jans.as.model.configuration.AppConfiguration getAppConfiguration()
      • getStaticConfiguration

        @Produces
        @ApplicationScoped
        public io.jans.as.model.config.StaticConfiguration getStaticConfiguration()
      • getWebKeysConfiguration

        @Produces
        @ApplicationScoped
        public io.jans.as.model.config.WebKeysConfiguration getWebKeysConfiguration()
      • getErrorResponseFactory

        @Produces
        @ApplicationScoped
        public io.jans.as.model.error.ErrorResponseFactory getErrorResponseFactory()
      • getBaseDn

        public io.jans.as.model.config.BaseDnConfiguration getBaseDn()
      • getCryptoConfigurationSalt

        public String getCryptoConfigurationSalt()
      • reloadConfFromLdap

        public boolean reloadConfFromLdap()
      • createFromDB

        protected boolean createFromDB​(boolean recoverFromFiles)
        Specified by:
        createFromDB in class io.jans.service.ApplicationConfigurationFactory
      • destroy

        public void destroy​(Class<? extends io.jans.as.model.configuration.Configuration> clazz)
      • loadCryptoConfigurationSalt

        public void loadCryptoConfigurationSalt()
      • getFacesMapping

        public String getFacesMapping()
      • getContextPath

        public String getContextPath()