Package io.jans.as.server.model.config
Class ConfigurationFactory
- java.lang.Object
-
- io.jans.service.ApplicationConfigurationFactory
-
- io.jans.as.server.model.config.ConfigurationFactory
-
@ApplicationScoped public class ConfigurationFactory extends io.jans.service.ApplicationConfigurationFactory
- Version:
- June 15, 2016
- Author:
- Yuriy Zabrovarnyy, Javier Rojas Blum, Yuriy Movchan
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_CONFIGURATION_RELOAD_EVENT_TYPE
static String
PERSISTENCE_CONFIGURATION_RELOAD_EVENT_TYPE
-
Constructor Summary
Constructors Constructor Description ConfigurationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
createFromDB(boolean recoverFromFiles)
void
destroy(Class<? extends io.jans.as.model.configuration.Configuration> clazz)
io.jans.as.model.configuration.AppConfiguration
getAppConfiguration()
io.jans.util.properties.FileConfiguration
getBaseConfiguration()
io.jans.as.model.config.BaseDnConfiguration
getBaseDn()
String
getContextPath()
String
getCryptoConfigurationSalt()
io.jans.as.model.error.ErrorResponseFactory
getErrorResponseFactory()
String
getFacesMapping()
io.jans.orm.model.PersistenceConfiguration
getPersistenceConfiguration()
io.jans.as.model.config.StaticConfiguration
getStaticConfiguration()
io.jans.as.model.config.WebKeysConfiguration
getWebKeysConfiguration()
void
init()
void
initTimer()
void
loadCryptoConfigurationSalt()
void
onServletContextActivation(jakarta.servlet.ServletContext context)
boolean
reloadConfFromLdap()
void
reloadConfigurationTimerEvent(io.jans.service.cdi.event.ConfigurationEvent configurationEvent)
-
-
-
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
-
-
Method Detail
-
init
@PostConstruct public void init()
-
onServletContextActivation
public void onServletContextActivation(@Observes jakarta.servlet.ServletContext context)
-
initTimer
public void initTimer()
- Overrides:
initTimer
in classio.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 classio.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 classio.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()
-
-