svn commit: r1389809 - /cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockDeploymentServletContextListener.java

[email protected]
Newsgroups gmane.text.xml.cocoon.cvs
Message-ID <[email protected]>
Author: thorsten
Date: Tue Sep 25 11:22:13 2012
New Revision: 1389809

URL: http://svn.apache.org/viewvc?rev=1389809&view=rev
Log:
white noise - formating changes

Modified:
    cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockDeploymentServletContextListener.java

Modified: cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockDeploymentServletContextListener.java
URL: http://svn.apache.org/viewvc/cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockDeploymentServletContextListener.java?rev=1389809&r1=1389808&r2=1389809&view=diff
==============================================================================
--- cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockDeploymentServletContextListener.java (original)
+++ cocoon/subprojects/cocoon-block-deployment/trunk/src/main/java/org/apache/cocoon/blockdeployment/BlockDeploymentServletContextListener.java Tue Sep 25 11:22:13 2012
@@ -21,33 +21,32 @@ package org.apache.cocoon.blockdeploymen
 import java.io.File;
 import java.io.IOException;
 import java.util.Map;
-
 import javax.servlet.ServletContext;
 import javax.servlet.ServletContextEvent;
 import javax.servlet.ServletContextListener;
 
 public class BlockDeploymentServletContextListener implements ServletContextListener {
 
-    public static final String BLOCK_CONTEXT_MAP = BlockDeploymentServletContextListener.class.getName() + "/"
-            + "block-context-map";
+    public static final String BLOCK_CONTEXT_MAP =
+            BlockDeploymentServletContextListener.class.getName() + "/" + "block-context-map";
 
-    public void contextInitialized(ServletContextEvent sce) {
-        try {
-            ServletContext servletContext = sce.getServletContext();
+    public void contextInitialized(final ServletContextEvent sce) {
+        final ServletContext servletContext = sce.getServletContext();
 
-            Map<String, String> blocks = DeploymentUtil.deployBlockArtifacts(this.getWorkdir(servletContext)
-                    .getAbsolutePath());
+        try {
+            final Map<String, String> blocks =
+                    DeploymentUtil.deployBlockArtifacts(this.getWorkdir(servletContext).getAbsolutePath());
             servletContext.setAttribute(BLOCK_CONTEXT_MAP, blocks);
         } catch (IOException e) {
             throw new RuntimeException("The available Cocoon blocks can't be deployed.", e);
         }
     }
 
-    public void contextDestroyed(ServletContextEvent sce) {
+    public void contextDestroyed(final ServletContextEvent sce) {
         sce.getServletContext().removeAttribute(BLOCK_CONTEXT_MAP);
     }
 
-    private File getWorkdir(ServletContext servletContext) {
+    private File getWorkdir(final ServletContext servletContext) {
         File workdir = (File) servletContext.getAttribute("javax.servlet.context.tempdir");
         if (workdir == null) {
             workdir = new File("cocoon-files");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.