Package io.jans.as.server.service
Class AppInitializer
- java.lang.Object
-
- io.jans.as.server.service.AppInitializer
-
@ApplicationScoped @Named public class AppInitializer extends Object
- Version:
- 0.1, 24/10/2011
- Author:
- Javier Rojas Blum, Yuriy Movchan, Yuriy Zabrovarnyy
-
-
Constructor Summary
Constructors Constructor Description AppInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applicationInitialized(Object init)
void
closePersistenceEntryManagers(List<io.jans.orm.PersistenceEntryManager> oldPersistenceEntryManagers)
void
createApplicationComponents()
io.jans.orm.PersistenceEntryManager
createMetricPersistenceEntryManager()
List<io.jans.model.ldap.GluuLdapConfiguration>
createPersistenceAuthConfigs()
List<io.jans.orm.PersistenceEntryManager>
createPersistenceAuthEntryManager()
io.jans.orm.PersistenceEntryManager
createPersistenceAuthEntryManager(io.jans.model.ldap.GluuLdapConfiguration persistenceAuthConfig)
io.jans.orm.PersistenceEntryManager
createPersistenceEntryManager()
void
destroy(jakarta.servlet.ServletContext init)
AuthenticationMode
getDefaultAuthenticationMode()
long
getLastFinishedTime()
io.jans.util.security.StringEncrypter
getStringEncrypter()
protected void
initSchedulerService()
void
initTimer()
protected Properties
prepareCustomPersistanceProperties(String configId)
protected Properties
preparePersistanceProperties()
protected void
recreatePersistanceEntryManagerImpl(jakarta.enterprise.inject.Instance<io.jans.orm.PersistenceEntryManager> instance, String persistenceEntryManagerName, Annotation... qualifiers)
void
recreatePersistenceAuthEntryManagers(List<io.jans.model.ldap.GluuLdapConfiguration> newPersistenceAuthConfigs)
void
recreatePersistenceEntryManager(String event)
void
reloadConfigurationTimerEvent(AuthConfigurationEvent authConfigurationEvent)
void
setLastFinishedTime(long lastFinishedTime)
-
-
-
Method Detail
-
createApplicationComponents
@PostConstruct public void createApplicationComponents()
-
applicationInitialized
public void applicationInitialized(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) Object init)
-
initSchedulerService
protected void initSchedulerService()
-
getStringEncrypter
@Produces @ApplicationScoped public io.jans.util.security.StringEncrypter getStringEncrypter()
-
initTimer
public void initTimer()
-
reloadConfigurationTimerEvent
@Asynchronous public void reloadConfigurationTimerEvent(@Observes AuthConfigurationEvent authConfigurationEvent)
-
createPersistenceAuthEntryManager
public io.jans.orm.PersistenceEntryManager createPersistenceAuthEntryManager(io.jans.model.ldap.GluuLdapConfiguration persistenceAuthConfig)
-
preparePersistanceProperties
protected Properties preparePersistanceProperties()
-
prepareCustomPersistanceProperties
protected Properties prepareCustomPersistanceProperties(String configId)
-
createPersistenceEntryManager
@Produces @ApplicationScoped @Named("persistenceEntryManager") public io.jans.orm.PersistenceEntryManager createPersistenceEntryManager()
-
createMetricPersistenceEntryManager
@Produces @ApplicationScoped @Named("persistenceMetricEntryManager") @ReportMetric public io.jans.orm.PersistenceEntryManager createMetricPersistenceEntryManager()
-
createPersistenceAuthConfigs
@Produces @ApplicationScoped @Named("persistenceAuthConfig") public List<io.jans.model.ldap.GluuLdapConfiguration> createPersistenceAuthConfigs()
-
createPersistenceAuthEntryManager
@Produces @ApplicationScoped @Named("persistenceAuthEntryManager") public List<io.jans.orm.PersistenceEntryManager> createPersistenceAuthEntryManager()
-
recreatePersistenceEntryManager
public void recreatePersistenceEntryManager(@Observes @LdapConfigurationReload String event)
-
recreatePersistanceEntryManagerImpl
protected void recreatePersistanceEntryManagerImpl(jakarta.enterprise.inject.Instance<io.jans.orm.PersistenceEntryManager> instance, String persistenceEntryManagerName, Annotation... qualifiers)
-
closePersistenceEntryManagers
public void closePersistenceEntryManagers(List<io.jans.orm.PersistenceEntryManager> oldPersistenceEntryManagers)
-
recreatePersistenceAuthEntryManagers
public void recreatePersistenceAuthEntryManagers(List<io.jans.model.ldap.GluuLdapConfiguration> newPersistenceAuthConfigs)
-
getDefaultAuthenticationMode
@Produces @ApplicationScoped public AuthenticationMode getDefaultAuthenticationMode()
-
destroy
public void destroy(@Observes @BeforeDestroyed(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext init)
-
getLastFinishedTime
public long getLastFinishedTime()
-
setLastFinishedTime
public void setLastFinishedTime(long lastFinishedTime)
-
-