Skip to content

Commit

Permalink
Update readme for separate Furnace container
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Jul 22, 2013
1 parent 1e16c08 commit a00ec6e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,19 @@ Forge Addons must be packaged with a 'forge-addon' classifier. Add this plugin c
</build>
```

To expose services in your Addon for injection and service lookups in other addons, your types must be annotated with **@Exported**:
Use the Forge CDI Container

In order to use CDI in your addon, you need to reference the Furnace CDI container addon in your `pom.xml` file.
```
<dependency>
<groupId>org.jboss.forge.furnace</groupId>
<artifactId>container-cdi</artifactId>
<classifier>forge-addon</classifier>
<scope>provided</scope>
</dependency>
```

Once this is done, to expose services in your Addon for injection and service lookups in other addons, your types must be annotated with **@Exported**:
```java
@Exported
public class ServiceImpl
Expand Down Expand Up @@ -157,7 +169,6 @@ Add User Inputs to your Addon
<groupId>org.jboss.forge</groupId>
<artifactId>ui</artifactId>
<classifier>forge-addon</classifier>
<version>2.0.0.Alpha6</version>
</dependency>
```

Expand Down

0 comments on commit a00ec6e

Please sign in to comment.