Package io.jans.as.server.model.config
Class ConfigurationFactory
- java.lang.Object
-
- io.jans.as.server.model.config.ConfigurationFactory
-
@ApplicationScoped public class ConfigurationFactory extends java.lang.Object
- Version:
- June 15, 2016
- Author:
- Yuriy Zabrovarnyy, Javier Rojas Blum, Yuriy Movchan
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BASE_CONFIGURATION_RELOAD_EVENT_TYPE
static java.lang.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 void
create()
void
destroy(java.lang.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()
java.lang.String
getContextPath()
java.lang.String
getCryptoConfigurationAlg()
java.lang.String
getCryptoConfigurationPassw()
java.lang.String
getCryptoConfigurationSalt()
io.jans.as.model.error.ErrorResponseFactory
getErrorResponseFactory()
java.lang.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(javax.servlet.ServletContext context)
boolean
reloadConfFromLdap()
void
reloadConfigurationTimerEvent(io.jans.service.cdi.event.ConfigurationEvent configurationEvent)
-
-
-
Field Detail
-
PERSISTENCE_CONFIGURATION_RELOAD_EVENT_TYPE
public static final java.lang.String PERSISTENCE_CONFIGURATION_RELOAD_EVENT_TYPE
- See Also:
- Constant Field Values
-
BASE_CONFIGURATION_RELOAD_EVENT_TYPE
public static final java.lang.String BASE_CONFIGURATION_RELOAD_EVENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@PostConstruct public void init()
-
onServletContextActivation
public void onServletContextActivation(@Observes javax.servlet.ServletContext context)
-
create
public void create()
-
initTimer
public void initTimer()
-
reloadConfigurationTimerEvent
@Asynchronous public void reloadConfigurationTimerEvent(@Observes io.jans.service.cdi.event.ConfigurationEvent configurationEvent)
-
getBaseConfiguration
public io.jans.util.properties.FileConfiguration getBaseConfiguration()
-
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()
-
getCryptoConfigurationPassw
public java.lang.String getCryptoConfigurationPassw()
-
getCryptoConfigurationSalt
public java.lang.String getCryptoConfigurationSalt()
-
getCryptoConfigurationAlg
public java.lang.String getCryptoConfigurationAlg()
-
reloadConfFromLdap
public boolean reloadConfFromLdap()
-
destroy
public void destroy(java.lang.Class<? extends io.jans.as.model.configuration.Configuration> clazz)
-
loadCryptoConfigurationSalt
public void loadCryptoConfigurationSalt()
-
getFacesMapping
public java.lang.String getFacesMapping()
-
getContextPath
public java.lang.String getContextPath()
-
-