You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2012/11/15 12:40:46 UTC

svn commit: r1409740 - in /openwebbeans/trunk/webbeans-arquillian: ./ owb-arquillian-standalone/ owb-arquillian-standalone/src/ owb-arquillian-standalone/src/main/ owb-arquillian-standalone/src/main/java/ owb-arquillian-standalone/src/main/java/org/ ow...

Author: struberg
Date: Thu Nov 15 11:40:45 2012
New Revision: 1409740

URL: http://svn.apache.org/viewvc?rev=1409740&view=rev
Log:
OWB-710 add initial owb-arquillian container work

Added:
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbArquillianExtension.java   (with props)
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneConfiguration.java   (with props)
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneContainer.java   (with props)
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/resources/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/resources/META-INF/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/resources/META-INF/services/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/test/
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/test/java/
Modified:
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/pom.xml
    openwebbeans/trunk/webbeans-arquillian/pom.xml

Modified: openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/pom.xml
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/pom.xml?rev=1409740&r1=1409739&r2=1409740&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/pom.xml (original)
+++ openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/pom.xml Thu Nov 15 11:40:45 2012
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.openwebbeans.arquillian</groupId>
         <artifactId>parent</artifactId>
-        <version>1.1.7-SNAPSHOT</version>
+        <version>1.2.0-SNAPSHOT</version>
     </parent>
     <artifactId>owb-arquillian-standalone</artifactId>
     <packaging>jar</packaging>

Added: openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbArquillianExtension.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbArquillianExtension.java?rev=1409740&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbArquillianExtension.java (added)
+++ openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbArquillianExtension.java Thu Nov 15 11:40:45 2012
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.arquillian.standalone;
+
+import org.jboss.arquillian.container.spi.client.container.DeployableContainer;
+import org.jboss.arquillian.core.spi.LoadableExtension;
+
+/**
+ */
+public class OwbArquillianExtension implements LoadableExtension
+{
+    public void register(ExtensionBuilder builder)
+    {
+        builder.service(DeployableContainer.class, OwbStandaloneContainer.class);
+    }
+}

Propchange: openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbArquillianExtension.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneConfiguration.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneConfiguration.java?rev=1409740&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneConfiguration.java (added)
+++ openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneConfiguration.java Thu Nov 15 11:40:45 2012
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.arquillian.standalone;
+
+import org.jboss.arquillian.container.spi.ConfigurationException;
+import org.jboss.arquillian.container.spi.client.container.ContainerConfiguration;
+
+/**
+ * Validate if the Owb Container is correctly configured
+ */
+public class OwbStandaloneConfiguration implements ContainerConfiguration
+{
+    public void validate() throws ConfigurationException
+    {
+        //X TODO implement validation
+    }
+}

Propchange: openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneConfiguration.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneContainer.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneContainer.java?rev=1409740&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneContainer.java (added)
+++ openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneContainer.java Thu Nov 15 11:40:45 2012
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.arquillian.standalone;
+
+import org.jboss.arquillian.container.spi.client.container.DeployableContainer;
+import org.jboss.arquillian.container.spi.client.container.DeploymentException;
+import org.jboss.arquillian.container.spi.client.container.LifecycleException;
+import org.jboss.arquillian.container.spi.client.protocol.ProtocolDescription;
+import org.jboss.arquillian.container.spi.client.protocol.metadata.ProtocolMetaData;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.descriptor.api.Descriptor;
+
+/**
+ */
+public class OwbStandaloneContainer implements DeployableContainer<OwbStandaloneConfiguration>
+{
+    public ProtocolMetaData deploy(Archive<?> archive) throws DeploymentException
+    {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public Class<OwbStandaloneConfiguration> getConfigurationClass()
+    {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void setup(OwbStandaloneConfiguration owbStandaloneConfiguration)
+    {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void start() throws LifecycleException
+    {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void stop() throws LifecycleException
+    {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public ProtocolDescription getDefaultProtocol()
+    {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void undeploy(Archive<?> archive) throws DeploymentException
+    {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void deploy(Descriptor descriptor) throws DeploymentException
+    {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public void undeploy(Descriptor descriptor) throws DeploymentException
+    {
+        //To change body of implemented methods use File | Settings | File Templates.
+    }
+}

Propchange: openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbStandaloneContainer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension?rev=1409740&view=auto
==============================================================================
--- openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension (added)
+++ openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension Thu Nov 15 11:40:45 2012
@@ -0,0 +1,18 @@
+#Licensed to the Apache Software Foundation (ASF) under one
+#or more contributor license agreements.  See the NOTICE file
+#distributed with this work for additional information
+#regarding copyright ownership.  The ASF licenses this file
+#to you under the Apache License, Version 2.0 (the
+#"License"); you may not use this file except in compliance
+#with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+#Unless required by applicable law or agreed to in writing,
+#software distributed under the License is distributed on an
+#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#KIND, either express or implied.  See the License for the
+#specific language governing permissions and limitations
+#under the License.
+
+org.apache.webbeans.arquillian.standalone.OwbArquillianExtension

Modified: openwebbeans/trunk/webbeans-arquillian/pom.xml
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-arquillian/pom.xml?rev=1409740&r1=1409739&r2=1409740&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-arquillian/pom.xml (original)
+++ openwebbeans/trunk/webbeans-arquillian/pom.xml Thu Nov 15 11:40:45 2012
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.openwebbeans</groupId>
         <artifactId>openwebbeans</artifactId>
-        <version>1.1.7-SNAPSHOT</version>
+        <version>1.2.0-SNAPSHOT</version>
     </parent>
     <groupId>org.apache.openwebbeans.arquillian</groupId>
     <artifactId>parent</artifactId>
@@ -31,4 +31,47 @@
     <modules>
         <module>owb-arquillian-standalone</module>
     </modules>
+
+    <properties>
+        <arquillian.version>1.0.2.Final</arquillian.version>
+    </properties>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.jboss.arquillian</groupId>
+                <artifactId>arquillian-bom</artifactId>
+                <version>${arquillian.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+<!--
+            <dependency>
+                <groupId>org.jboss.arquillian</groupId>
+                <artifactId>arquillian-build</artifactId>
+                <version>${arquillian.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+-->
+        </dependencies>
+
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.jboss.arquillian.core</groupId>
+            <artifactId>arquillian-core-spi</artifactId>
+            <version>${arquillian.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.jboss.arquillian.container</groupId>
+            <artifactId>arquillian-container-spi</artifactId>
+            <version>${arquillian.version}</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+
 </project>