Package de.businesscode.bcdui.web
Class BcdUiApplicationContextListener
java.lang.Object
de.businesscode.bcdui.web.BcdUiApplicationContextListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener
,EventListener
public class BcdUiApplicationContextListener
extends Object
implements jakarta.servlet.ServletContextListener
In web environments serves for initializing de.businesscode.bcdui.toolbox.Configuration
With application context settings (from context and web.xml)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(jakarta.servlet.ServletContextEvent context) final void
contextInitialized
(jakarta.servlet.ServletContextEvent context) Bootstrap for BCD-UI in an web-environment.static ResourceBundle.Control
protected void
initBeforeBindings
(BareConfiguration bareConfiguraion) this method is called withincontextInitialized(ServletContextEvent)
after theBareConfiguration
has been initialized but before Bindings are parsed.
-
Constructor Details
-
BcdUiApplicationContextListener
public BcdUiApplicationContextListener()
-
-
Method Details
-
getResourceBundleControl
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent context) - Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-
contextInitialized
public final void contextInitialized(jakarta.servlet.ServletContextEvent context) Bootstrap for BCD-UI in an web-environment. This method is final as the bootstrapping must keep certain order of initialization, therefore this class offers API to be implemented by extended subclasses:- Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
- Parameters:
context
-
-
initBeforeBindings
this method is called withincontextInitialized(ServletContextEvent)
after theBareConfiguration
has been initialized but before Bindings are parsed.- Parameters:
bareConfiguraion
-- Throws:
BindingException
-