[jboss-cvs] JBossAS SVN: r100703 - in projects/ejb3/components/vfs/trunk: impl-vfs2/src/main/java and 21 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Feb 8 10:01:04 EST 2010
Author: wolfc
Date: 2010-02-08 10:01:02 -0500 (Mon, 08 Feb 2010)
New Revision: 100703
Added:
projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/
projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/jboss/
projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/jboss/ejb3/
projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/jboss/ejb3/vfs/
projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/jboss/ejb3/vfs/impl/
projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/jboss/ejb3/vfs/impl/vfs2/
projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/jboss/ejb3/vfs/impl/vfs2/VirtualFileWrapper.java
projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/
projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/
projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/ejb3/
projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/ejb3/vfs/
projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/ejb3/vfs/impl/
projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/ejb3/vfs/impl/vfs3/
projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/ejb3/vfs/impl/vfs3/VirtualFileWrapper.java
projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/
projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/VirtualFile.java
projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/VirtualFileFilter.java
projects/ejb3/components/vfs/trunk/spi/src/main/java/org/
projects/ejb3/components/vfs/trunk/spi/src/main/java/org/jboss/
projects/ejb3/components/vfs/trunk/spi/src/main/java/org/jboss/ejb3/
projects/ejb3/components/vfs/trunk/spi/src/main/java/org/jboss/ejb3/vfs/
projects/ejb3/components/vfs/trunk/spi/src/main/java/org/jboss/ejb3/vfs/spi/
projects/ejb3/components/vfs/trunk/spi/src/main/java/org/jboss/ejb3/vfs/spi/VirtualFile.java
Modified:
projects/ejb3/components/vfs/trunk/impl-vfs2/pom.xml
projects/ejb3/components/vfs/trunk/impl-vfs3/pom.xml
Log:
EJBTHREE-2007: simple wrappers
Modified: projects/ejb3/components/vfs/trunk/impl-vfs2/pom.xml
===================================================================
--- projects/ejb3/components/vfs/trunk/impl-vfs2/pom.xml 2010-02-08 15:00:52 UTC (rev 100702)
+++ projects/ejb3/components/vfs/trunk/impl-vfs2/pom.xml 2010-02-08 15:01:02 UTC (rev 100703)
@@ -37,19 +37,16 @@
<dependencies>
- <!--
- Dependencies: org.jboss.ejb3.vfs
- -->
<dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-vfs</artifactId>
+ <version>2.1.3.SP1</version>
+ </dependency>
+
+ <dependency>
<groupId>org.jboss.ejb3.vfs</groupId>
<artifactId>vfs-spi</artifactId>
<version>${version}</version>
</dependency>
-
-
- <!--
- Dependencies: External to EJB3
- -->
-
</dependencies>
</project>
Added: projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/jboss/ejb3/vfs/impl/vfs2/VirtualFileWrapper.java
===================================================================
--- projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/jboss/ejb3/vfs/impl/vfs2/VirtualFileWrapper.java (rev 0)
+++ projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/jboss/ejb3/vfs/impl/vfs2/VirtualFileWrapper.java 2010-02-08 15:01:02 UTC (rev 100703)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright (c) 2010, 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.ejb3.vfs.impl.vfs2;
+
+import org.jboss.ejb3.vfs.spi.VirtualFile;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+/**
+ * @author <a href="cdewolf at redhat.com">Carlo de Wolf</a>
+ */
+public class VirtualFileWrapper implements VirtualFile
+{
+ private org.jboss.virtual.VirtualFile delegate;
+
+ public VirtualFileWrapper(org.jboss.virtual.VirtualFile delegate)
+ {
+ this.delegate = delegate;
+ }
+
+ @Override
+ public String getName()
+ {
+ return delegate.getName();
+ }
+
+ @Override
+ public VirtualFile getParent() throws IOException
+ {
+ return new VirtualFileWrapper(delegate.getParent());
+ }
+
+ @Override
+ public boolean isLeaf() throws IOException
+ {
+ return delegate.isLeaf();
+ }
+
+ @Override
+ public InputStream openStream() throws IOException
+ {
+ return delegate.openStream();
+ }
+}
Property changes on: projects/ejb3/components/vfs/trunk/impl-vfs2/src/main/java/org/jboss/ejb3/vfs/impl/vfs2/VirtualFileWrapper.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Modified: projects/ejb3/components/vfs/trunk/impl-vfs3/pom.xml
===================================================================
--- projects/ejb3/components/vfs/trunk/impl-vfs3/pom.xml 2010-02-08 15:00:52 UTC (rev 100702)
+++ projects/ejb3/components/vfs/trunk/impl-vfs3/pom.xml 2010-02-08 15:01:02 UTC (rev 100703)
@@ -36,20 +36,16 @@
</properties>
<dependencies>
-
- <!--
- Dependencies: org.jboss.ejb3.vfs
- -->
<dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jboss-vfs</artifactId>
+ <version>3.0.0.CR1-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
<groupId>org.jboss.ejb3.vfs</groupId>
<artifactId>vfs-spi</artifactId>
<version>${version}</version>
</dependency>
-
-
- <!--
- Dependencies: External to EJB3
- -->
-
</dependencies>
</project>
Added: projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/ejb3/vfs/impl/vfs3/VirtualFileWrapper.java
===================================================================
--- projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/ejb3/vfs/impl/vfs3/VirtualFileWrapper.java (rev 0)
+++ projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/ejb3/vfs/impl/vfs3/VirtualFileWrapper.java 2010-02-08 15:01:02 UTC (rev 100703)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright (c) 2010, 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.ejb3.vfs.impl.vfs3;
+
+import org.jboss.virtual.VirtualFile;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+/**
+ * @author <a href="cdewolf at redhat.com">Carlo de Wolf</a>
+ */
+public class VirtualFileWrapper implements VirtualFile
+{
+ private org.jboss.vfs.VirtualFile delegate;
+
+ public VirtualFileWrapper(org.jboss.vfs.VirtualFile delegate)
+ {
+ this.delegate = delegate;
+ }
+
+ @Override
+ public String getName()
+ {
+ return delegate.getName();
+ }
+
+ @Override
+ public VirtualFile getParent() throws IOException
+ {
+ return new VirtualFileWrapper(delegate.getParent());
+ }
+
+ @Override
+ public boolean isLeaf() throws IOException
+ {
+ return delegate.isLeaf();
+ }
+
+ @Override
+ public InputStream openStream() throws IOException
+ {
+ return delegate.openStream();
+ }
+}
Property changes on: projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/ejb3/vfs/impl/vfs3/VirtualFileWrapper.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Added: projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/VirtualFile.java
===================================================================
--- projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/VirtualFile.java (rev 0)
+++ projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/VirtualFile.java 2010-02-08 15:01:02 UTC (rev 100703)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright (c) 2010, 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.virtual;
+
+import java.io.IOException;
+
+/**
+ * @author <a href="cdewolf at redhat.com">Carlo de Wolf</a>
+ */
+ at Deprecated
+public interface VirtualFile extends org.jboss.ejb3.vfs.spi.VirtualFile
+{
+ VirtualFile getParent() throws IOException;
+}
Property changes on: projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/VirtualFile.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Added: projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/VirtualFileFilter.java
===================================================================
--- projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/VirtualFileFilter.java (rev 0)
+++ projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/VirtualFileFilter.java 2010-02-08 15:01:02 UTC (rev 100703)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright (c) 2010, 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.virtual;
+
+/**
+ * @author <a href="cdewolf at redhat.com">Carlo de Wolf</a>
+ */
+ at Deprecated
+public interface VirtualFileFilter
+{
+}
Property changes on: projects/ejb3/components/vfs/trunk/impl-vfs3/src/main/java/org/jboss/virtual/VirtualFileFilter.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Added: projects/ejb3/components/vfs/trunk/spi/src/main/java/org/jboss/ejb3/vfs/spi/VirtualFile.java
===================================================================
--- projects/ejb3/components/vfs/trunk/spi/src/main/java/org/jboss/ejb3/vfs/spi/VirtualFile.java (rev 0)
+++ projects/ejb3/components/vfs/trunk/spi/src/main/java/org/jboss/ejb3/vfs/spi/VirtualFile.java 2010-02-08 15:01:02 UTC (rev 100703)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright (c) 2010, 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.ejb3.vfs.spi;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+/**
+ * @author <a href="cdewolf at redhat.com">Carlo de Wolf</a>
+ */
+public interface VirtualFile
+{
+ String getName();
+
+ VirtualFile getParent() throws IOException;
+
+ boolean isLeaf() throws IOException;
+
+ InputStream openStream() throws IOException;
+}
Property changes on: projects/ejb3/components/vfs/trunk/spi/src/main/java/org/jboss/ejb3/vfs/spi/VirtualFile.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
More information about the jboss-cvs-commits
mailing list