Class AppInitializer


  • @ApplicationScoped
    @Named
    public class AppInitializer
    extends java.lang.Object
    Perform startup time initialization
    Author:
    Yuriy Movchan
    • Constructor Detail

      • AppInitializer

        public AppInitializer()
    • 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()