[jboss-cvs] JBossAS SVN: r94988 - projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Oct 15 17:44:44 EDT 2009


Author: david.lloyd at jboss.com
Date: 2009-10-15 17:44:44 -0400 (Thu, 15 Oct 2009)
New Revision: 94988

Removed:
   projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/ExplodeModificationAction.java
   projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/TempModificationAction.java
   projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/UnjarModificationAction.java
   projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/UnpackModificationAction.java
Modified:
   projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/ModificationActions.java
Log:
Defeat modification actions

Deleted: projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/ExplodeModificationAction.java
===================================================================
--- projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/ExplodeModificationAction.java	2009-10-15 20:19:39 UTC (rev 94987)
+++ projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/ExplodeModificationAction.java	2009-10-15 21:44:44 UTC (rev 94988)
@@ -1,41 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.deployers.vfs.plugins.structure.modify;
-
-import java.io.IOException;
-import java.net.URISyntaxException;
-
-import org.jboss.vfs.VirtualFile;
-import org.jboss.vfs.VFSUtils;
-
-/**
- * Explode modification action.
- *
- * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
- */
-class ExplodeModificationAction implements ModificationAction
-{
-   public VirtualFile modify(VirtualFile original) throws IOException, URISyntaxException
-   {
-      return VFSUtils.explode(original);
-   }
-}
\ No newline at end of file

Modified: projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/ModificationActions.java
===================================================================
--- projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/ModificationActions.java	2009-10-15 20:19:39 UTC (rev 94987)
+++ projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/ModificationActions.java	2009-10-15 21:44:44 UTC (rev 94988)
@@ -21,10 +21,11 @@
 */
 package org.jboss.deployers.vfs.plugins.structure.modify;
 
-import java.util.HashMap;
-import java.util.Map;
+import java.io.IOException;
+import java.net.URISyntaxException;
 
 import org.jboss.deployers.spi.structure.ModificationType;
+import org.jboss.vfs.VirtualFile;
 
 /**
  * Modification actions.
@@ -33,16 +34,13 @@
  */
 public class ModificationActions
 {
-   private static final Map<ModificationType, ModificationAction> actions;
-
-   static
+   private static final ModificationAction ACTION = new ModificationAction()
    {
-      actions = new HashMap<ModificationType, ModificationAction>();
-      actions.put(ModificationType.UNPACK, new UnpackModificationAction());
-      actions.put(ModificationType.EXPLODE, new ExplodeModificationAction());
-      actions.put(ModificationType.TEMP, new TempModificationAction());
-      actions.put(ModificationType.UNJAR, new UnjarModificationAction());
-   }
+      public VirtualFile modify(final VirtualFile original) throws IOException, URISyntaxException
+      {
+         return original;
+      }
+   };
 
    /**
     * Get the modification action.
@@ -52,6 +50,6 @@
     */
    public static ModificationAction getAction(ModificationType type)
    {
-      return actions.get(type);
+      return ACTION;
    }
 }

Deleted: projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/TempModificationAction.java
===================================================================
--- projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/TempModificationAction.java	2009-10-15 20:19:39 UTC (rev 94987)
+++ projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/TempModificationAction.java	2009-10-15 21:44:44 UTC (rev 94988)
@@ -1,41 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.deployers.vfs.plugins.structure.modify;
-
-import java.io.IOException;
-import java.net.URISyntaxException;
-
-import org.jboss.vfs.VirtualFile;
-import org.jboss.vfs.VFSUtils;
-
-/**
- * Temp modification action.
- *
- * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
- */
-class TempModificationAction implements ModificationAction
-{
-   public VirtualFile modify(VirtualFile original) throws IOException, URISyntaxException
-   {
-      return VFSUtils.temp(original);
-   }
-}
\ No newline at end of file

Deleted: projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/UnjarModificationAction.java
===================================================================
--- projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/UnjarModificationAction.java	2009-10-15 20:19:39 UTC (rev 94987)
+++ projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/UnjarModificationAction.java	2009-10-15 21:44:44 UTC (rev 94988)
@@ -1,41 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.deployers.vfs.plugins.structure.modify;
-
-import java.io.IOException;
-import java.net.URISyntaxException;
-
-import org.jboss.vfs.VirtualFile;
-import org.jboss.vfs.VFSUtils;
-
-/**
- * Unjar modification action.
- *
- * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
- */
-class UnjarModificationAction implements ModificationAction
-{
-   public VirtualFile modify(VirtualFile original) throws IOException, URISyntaxException
-   {
-      return VFSUtils.unjar(original);
-   }
-}
\ No newline at end of file

Deleted: projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/UnpackModificationAction.java
===================================================================
--- projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/UnpackModificationAction.java	2009-10-15 20:19:39 UTC (rev 94987)
+++ projects/jboss-deployers/branches/vfs3/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/modify/UnpackModificationAction.java	2009-10-15 21:44:44 UTC (rev 94988)
@@ -1,41 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.deployers.vfs.plugins.structure.modify;
-
-import java.io.IOException;
-import java.net.URISyntaxException;
-
-import org.jboss.vfs.VirtualFile;
-import org.jboss.vfs.VFSUtils;
-
-/**
- * Unpack modification action.
- *
- * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
- */
-class UnpackModificationAction implements ModificationAction
-{
-   public VirtualFile modify(VirtualFile original) throws IOException, URISyntaxException
-   {
-      return VFSUtils.unpack(original);
-   }
-}




More information about the jboss-cvs-commits mailing list