Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Arquillian Weld container as a subproject
git-subtree-dir: arquillian/weld-ee-container git-subtree-mainline: f5d4c64 git-subtree-split: ee88173
- Loading branch information
Showing
52 changed files
with
4,381 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<!-- Parent --> | ||
<parent> | ||
<groupId>org.jboss.arquillian</groupId> | ||
<artifactId>arquillian-build</artifactId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<relativePath>../../build/pom.xml</relativePath> | ||
</parent> | ||
|
||
<!-- Model Version --> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<!-- Artifact Configuration --> | ||
<groupId>org.jboss.arquillian.container</groupId> | ||
<artifactId>arquillian-weld-ee-embedded-1.1</artifactId> | ||
<name>Arquillian Container Weld EE Embedded 1.1.x</name> | ||
<description>Weld EE 1.1.x Embedded Container integration for the Arquillian Project</description> | ||
|
||
|
||
<!-- Properties --> | ||
<properties> | ||
|
||
<!-- Versioning --> | ||
<version.weld_core>1.0.1-SP4</version.weld_core> | ||
|
||
</properties> | ||
|
||
<repositories> <!-- TEMP, only needed until 1.0.2/1.1.0 is released. We're dependent on ConversationManager2 --> | ||
<repository> | ||
<id>weld-sonatype</id> | ||
<url>https://oss.sonatype.org/content/repositories/jboss-snapshots/</url> | ||
<snapshots> | ||
<updatePolicy>never</updatePolicy> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
</repository> | ||
</repositories> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<!-- org.jboss.weld --> | ||
<dependency> | ||
<groupId>org.jboss.weld</groupId> | ||
<artifactId>weld-core-bom</artifactId> | ||
<version>${version.weld_core}</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<!-- Dependencies --> | ||
<dependencies> | ||
|
||
<!-- | ||
org.jboss.arquillian | ||
--> | ||
<dependency> | ||
<groupId>org.jboss.arquillian</groupId> | ||
<artifactId>arquillian-spi</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jboss.arquillian.protocol</groupId> | ||
<artifactId>arquillian-protocol-local</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.jboss.arquillian.testenricher</groupId> | ||
<artifactId>arquillian-testenricher-cdi</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.jboss.shrinkwrap</groupId> | ||
<artifactId>shrinkwrap-extension-classloader</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.jboss.shrinkwrap</groupId> | ||
<artifactId>shrinkwrap-impl-base</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<!-- | ||
org.jboss.weld | ||
--> | ||
<dependency> | ||
<groupId>org.jboss.weld</groupId> | ||
<artifactId>weld-api</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.jboss.weld</groupId> | ||
<artifactId>weld-core</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.el</groupId> | ||
<artifactId>el-api</artifactId> | ||
<version>2.2</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.glassfish.web</groupId> | ||
<artifactId>el-impl</artifactId> | ||
<version>2.1.2-b04</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.jboss.spec.javax.servlet</groupId> | ||
<artifactId>jboss-servlet-api_3.0_spec</artifactId> | ||
<version>1.0.0.Beta2</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.validation</groupId> | ||
<artifactId>validation-api</artifactId> | ||
<version>1.0.0.GA</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.transaction</groupId> | ||
<artifactId>jta</artifactId> | ||
<version>1.1</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.persistence</groupId> | ||
<artifactId>persistence-api</artifactId> | ||
<version>1.0</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.jboss.ejb3</groupId> | ||
<artifactId>jboss-ejb3-api</artifactId> | ||
<version>3.1.0</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
|
||
<!-- Test dependencies --> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-simple</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.jboss.arquillian</groupId> | ||
<artifactId>arquillian-junit</artifactId> | ||
<version>${project.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
42 changes: 42 additions & 0 deletions
42
...ontainer/src/main/java/org/jboss/arquillian/container/weld/ee/embedded_1_1/BeanUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source | ||
* Copyright 2009, Red Hat Middleware LLC, and individual contributors | ||
* by the @authors tag. See the copyright.txt in the distribution for a | ||
* full listing of individual contributors. | ||
* | ||
* Licensed 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.jboss.arquillian.container.weld.ee.embedded_1_1; | ||
|
||
import javax.enterprise.inject.spi.Bean; | ||
import javax.enterprise.inject.spi.BeanManager; | ||
|
||
/** | ||
* BeanUtils | ||
* | ||
* @author <a href="mailto:aslak@redhat.com">Aslak Knutsen</a> | ||
* @version $Revision: $ | ||
*/ | ||
final class BeanUtils | ||
{ | ||
private BeanUtils() {} | ||
|
||
@SuppressWarnings("unchecked") | ||
static <T> T getBeanReference(BeanManager manager, Class<T> type) | ||
{ | ||
Bean bean = manager.resolve(manager.getBeans(type)); | ||
return (T)manager.getReference( | ||
bean, | ||
type, | ||
manager.createCreationalContext(null)); | ||
} | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
.../src/main/java/org/jboss/arquillian/container/weld/ee/embedded_1_1/CDIConversationID.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source | ||
* Copyright 2009, Red Hat Middleware LLC, and individual contributors | ||
* by the @authors tag. See the copyright.txt in the distribution for a | ||
* full listing of individual contributors. | ||
* | ||
* Licensed 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.jboss.arquillian.container.weld.ee.embedded_1_1; | ||
|
||
/** | ||
* Simple CDI COnversation ID holder object. Bound to the Class context | ||
* | ||
* @author <a href="mailto:aslak@redhat.com">Aslak Knutsen</a> | ||
* @version $Revision: $ | ||
*/ | ||
public class CDIConversationID | ||
{ | ||
private String id; | ||
|
||
public CDIConversationID(final String id) | ||
{ | ||
this.id = id; | ||
} | ||
|
||
public String getId() | ||
{ | ||
return id; | ||
} | ||
} | ||
|
48 changes: 48 additions & 0 deletions
48
...ainer/src/main/java/org/jboss/arquillian/container/weld/ee/embedded_1_1/CDIRequestID.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source | ||
* Copyright 2009, Red Hat Middleware LLC, and individual contributors | ||
* by the @authors tag. See the copyright.txt in the distribution for a | ||
* full listing of individual contributors. | ||
* | ||
* Licensed 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.jboss.arquillian.container.weld.ee.embedded_1_1; | ||
|
||
import org.jboss.weld.context.api.BeanStore; | ||
|
||
/** | ||
* Simple CDI COnversation ID holder object. Bound to the Class context | ||
* | ||
* @author <a href="mailto:aslak@redhat.com">Aslak Knutsen</a> | ||
* @version $Revision: $ | ||
*/ | ||
public class CDIRequestID | ||
{ | ||
private String id; | ||
private BeanStore beanStore; | ||
|
||
public CDIRequestID(final String id, BeanStore beanStore) | ||
{ | ||
this.id = id; | ||
this.beanStore = beanStore; | ||
} | ||
|
||
public String getId() | ||
{ | ||
return id; | ||
} | ||
|
||
public BeanStore getBeanStore() | ||
{ | ||
return beanStore; | ||
} | ||
} | ||
|
48 changes: 48 additions & 0 deletions
48
...ainer/src/main/java/org/jboss/arquillian/container/weld/ee/embedded_1_1/CDISessionID.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source | ||
* Copyright 2009, Red Hat Middleware LLC, and individual contributors | ||
* by the @authors tag. See the copyright.txt in the distribution for a | ||
* full listing of individual contributors. | ||
* | ||
* Licensed 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.jboss.arquillian.container.weld.ee.embedded_1_1; | ||
|
||
import org.jboss.weld.context.api.BeanStore; | ||
|
||
/** | ||
* Simple CDI COnversation ID holder object. Bound to the Class context | ||
* | ||
* @author <a href="mailto:aslak@redhat.com">Aslak Knutsen</a> | ||
* @version $Revision: $ | ||
*/ | ||
public class CDISessionID | ||
{ | ||
private String id; | ||
private BeanStore beanStore; | ||
|
||
public CDISessionID(final String id, BeanStore beanStore) | ||
{ | ||
this.id = id; | ||
this.beanStore = beanStore; | ||
} | ||
|
||
public String getId() | ||
{ | ||
return id; | ||
} | ||
|
||
public BeanStore getBeanStore() | ||
{ | ||
return beanStore; | ||
} | ||
} | ||
|
Oops, something went wrong.