Package de.businesscode.bcdui.web
Class BcdUiApplicationContextListener
- java.lang.Object
-
- de.businesscode.bcdui.web.BcdUiApplicationContextListener
-
- All Implemented Interfaces:
java.util.EventListener
,javax.servlet.ServletContextListener
public class BcdUiApplicationContextListener extends java.lang.Object implements javax.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 Constructor Description BcdUiApplicationContextListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent context)
void
contextInitialized(javax.servlet.ServletContextEvent context)
Bootstrap for BCD-UI in an web-environment.static java.util.ResourceBundle.Control
getResourceBundleControl()
protected void
initBeforeBindings(BareConfiguration bareConfiguraion)
this method is called withincontextInitialized(ServletContextEvent)
after theBareConfiguration
has been initialized but before Bindings are parsed.
-
-
-
Method Detail
-
getResourceBundleControl
public static java.util.ResourceBundle.Control getResourceBundleControl()
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent context)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
contextInitialized
public final void contextInitialized(javax.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 interfacejavax.servlet.ServletContextListener
- Parameters:
context
-
-
initBeforeBindings
protected void initBeforeBindings(BareConfiguration bareConfiguraion) throws BindingException
this method is called withincontextInitialized(ServletContextEvent)
after theBareConfiguration
has been initialized but before Bindings are parsed.- Parameters:
bareConfiguraion
-- Throws:
BindingException
-
-