Skip to content

Commit

Permalink
FORGE-1658: environment now uses simple container
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Mar 8, 2014
1 parent f9a8702 commit 29320ca
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion environment/addon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- Furnace Container -->
<dependency>
<groupId>org.jboss.forge.furnace.container</groupId>
<artifactId>cdi</artifactId>
<artifactId>simple</artifactId>
<classifier>forge-addon</classifier>
<scope>provided</scope>
</dependency>
Expand Down
12 changes: 6 additions & 6 deletions environment/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<artifactId>environment-impl</artifactId>
<name>Forge - Environment Impl</name>
<dependencies>
<dependency>
<groupId>org.jboss.forge.furnace.container</groupId>
<artifactId>cdi-api</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.jboss.forge.addon</groupId>
<artifactId>environment-api</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.forge.furnace.container</groupId>
<artifactId>simple</artifactId>
<classifier>forge-addon</classifier>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import javax.inject.Singleton;

import org.jboss.forge.addon.environment.Category;
import org.jboss.forge.addon.environment.Environment;
import org.jboss.forge.furnace.container.simple.Service;

@Singleton
public class EnvironmentImpl implements Environment
public class EnvironmentImpl implements Environment, Service
{
private Map<String, Map<Object, Object>> categorizedMap =
private static final Map<String, Map<Object, Object>> categorizedMap =
Collections.synchronizedMap(
new HashMap<String, Map<Object, Object>>());

Expand Down
3 changes: 0 additions & 3 deletions environment/impl/src/main/resources/META-INF/beans.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.jboss.forge.addon.environment.impl.EnvironmentImpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static ForgeArchive getDeployment()
{
ForgeArchive archive = ShrinkWrap
.create(ForgeArchive.class)
.addPackages(true, CDIEnvironmentTest.class.getPackage())
.addClasses(TestCategory.class, UserInterfaceCategory.class)
.addBeansXML()
.addAsAddonDependencies(
AddonDependencyEntry.create("org.jboss.forge.furnace.container:cdi"),
Expand Down

0 comments on commit 29320ca

Please sign in to comment.