Package org.gluu.oxtrust.service
Class AppInitializer
- java.lang.Object
-
- org.gluu.oxtrust.service.AppInitializer
-
@ApplicationScoped @Named public class AppInitializer extends java.lang.Object
Perform startup time initialization- Author:
- Yuriy Movchan
-
-
Constructor Summary
Constructors Constructor Description AppInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applicationInitialized(java.lang.Object init)
Initialize components and schedule DS connection time checkervoid
createApplicationComponents()
org.gluu.persist.PersistenceEntryManager
createMetricPersistenceEntryManager()
org.gluu.persist.PersistenceEntryManager
createPersistenceEntryManager()
void
destroy(javax.servlet.ServletContext init)
java.lang.String
getGluuBuildDate()
java.lang.String
getGluuBuildNumber()
java.lang.String
getGluuRevisionDate()
java.lang.String
getGluuRevisionVersion()
org.gluu.util.security.StringEncrypter
getStringEncrypter()
OpenIdConfigurationResponse
initOpenIdConfiguration()
protected void
initSchedulerService()
protected java.util.Properties
prepareCustomPersistanceProperties(java.lang.String configId)
protected java.util.Properties
preparePersistanceProperties()
void
recreatePersistanceEntryManager(java.lang.String event)
protected void
recreatePersistanceEntryManagerImpl(javax.enterprise.inject.Instance<org.gluu.persist.PersistenceEntryManager> instance, java.lang.String persistenceEntryManagerName, java.lang.annotation.Annotation... qualifiers)
-
-
-
Method Detail
-
createApplicationComponents
@PostConstruct public void createApplicationComponents()
-
applicationInitialized
public void applicationInitialized(@Observes @Initialized(javax.enterprise.context.ApplicationScoped.class) java.lang.Object init)
Initialize components and schedule DS connection time checker
-
initSchedulerService
protected void initSchedulerService()
-
getStringEncrypter
@Produces @ApplicationScoped public org.gluu.util.security.StringEncrypter getStringEncrypter() throws org.gluu.exception.OxIntializationException
- Throws:
org.gluu.exception.OxIntializationException
-
preparePersistanceProperties
protected java.util.Properties preparePersistanceProperties()
-
prepareCustomPersistanceProperties
protected java.util.Properties prepareCustomPersistanceProperties(java.lang.String configId)
-
createPersistenceEntryManager
@Produces @ApplicationScoped @Named("persistenceEntryManager") public org.gluu.persist.PersistenceEntryManager createPersistenceEntryManager()
-
createMetricPersistenceEntryManager
@Produces @ApplicationScoped @Named("persistenceMetricEntryManager") @ReportMetric public org.gluu.persist.PersistenceEntryManager createMetricPersistenceEntryManager()
-
recreatePersistanceEntryManager
public void recreatePersistanceEntryManager(@Observes @LdapConfigurationReload java.lang.String event)
-
recreatePersistanceEntryManagerImpl
protected void recreatePersistanceEntryManagerImpl(javax.enterprise.inject.Instance<org.gluu.persist.PersistenceEntryManager> instance, java.lang.String persistenceEntryManagerName, java.lang.annotation.Annotation... qualifiers)
-
initOpenIdConfiguration
@Produces @ApplicationScoped @Named("openIdConfiguration") public OpenIdConfigurationResponse initOpenIdConfiguration() throws org.gluu.exception.OxIntializationException
- Throws:
org.gluu.exception.OxIntializationException
-
destroy
public void destroy(@Observes @BeforeDestroyed(javax.enterprise.context.ApplicationScoped.class) javax.servlet.ServletContext init)
-
getGluuRevisionVersion
public java.lang.String getGluuRevisionVersion()
-
getGluuRevisionDate
public java.lang.String getGluuRevisionDate()
-
getGluuBuildDate
public java.lang.String getGluuBuildDate()
-
getGluuBuildNumber
public java.lang.String getGluuBuildNumber()
-
-