Commit 7883c577ab432a2a58256a65d857fdc49689ca39
1 parent
a9805e63
Exists in
master
Ajuste no Servlet ContextListener para atender ao novo processo de
lifecycle
Showing
1 changed file
with
2 additions
and
13 deletions
Show diff stats
impl/extension/jsf/src/main/java/br/gov/frameworkdemoiselle/util/DemoiselleServletContextListener.java
... | ... | @@ -3,7 +3,6 @@ package br.gov.frameworkdemoiselle.util; |
3 | 3 | import javax.servlet.ServletContextEvent; |
4 | 4 | import javax.servlet.ServletContextListener; |
5 | 5 | |
6 | -import br.gov.frameworkdemoiselle.DemoiselleException; | |
7 | 6 | import br.gov.frameworkdemoiselle.internal.bootstrap.ShutdownBootstrap; |
8 | 7 | import br.gov.frameworkdemoiselle.internal.bootstrap.StartupBootstrap; |
9 | 8 | |
... | ... | @@ -11,21 +10,11 @@ public class DemoiselleServletContextListener implements ServletContextListener |
11 | 10 | |
12 | 11 | @Override |
13 | 12 | public void contextInitialized(ServletContextEvent event) { |
14 | - try { | |
15 | - StartupBootstrap.startup(); | |
16 | - | |
17 | - } catch (Throwable cause) { | |
18 | - throw new DemoiselleException(cause); | |
19 | - } | |
13 | + StartupBootstrap.startup(); | |
20 | 14 | } |
21 | 15 | |
22 | 16 | @Override |
23 | 17 | public void contextDestroyed(ServletContextEvent event) { |
24 | - try { | |
25 | - ShutdownBootstrap.shutdown(); | |
26 | - | |
27 | - } catch (Throwable cause) { | |
28 | - throw new DemoiselleException(cause); | |
29 | - } | |
18 | + ShutdownBootstrap.shutdown(); | |
30 | 19 | } |
31 | 20 | } | ... | ... |