Skip to content
Permalink
Browse files
JSIEVE-102 Adding injects
git-svn-id: https://svn.apache.org/repos/asf/james/jsieve/trunk@1709532 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Antoine Duprat committed Oct 20, 2015
1 parent 3cd3cb5 commit ae4d04afe69ec8e3ea4b3d7c858517d05af4d0a0
Showing 3 changed files with 12 additions and 3 deletions.
@@ -50,6 +50,10 @@
<dependency>
<groupId>${javax.activation.groupId}</groupId>
<artifactId>${javax.activation.artifactId}</artifactId>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
</dependency>
<dependency>
<groupId>org.apache.james</groupId>
@@ -26,7 +26,7 @@
import java.net.URL;
import java.util.Scanner;

import javax.annotation.Resource;
import javax.inject.Inject;
import javax.mail.MessagingException;

import org.apache.james.managesieve.api.SieveParser;
@@ -246,7 +246,7 @@ protected String computeHelp() throws MessagingException

/**
*/
@Resource(name = "sieverepository")
@Inject
public void setSieveRepository(SieveRepository repository) {
_sieveRepository = repository;
}
@@ -255,7 +255,7 @@ public void setSieveRepository(SieveRepository repository) {
* @param sieveParser
* the sieveParser to set
*/
@Resource(name = "sieveparser")
@Inject
public void setSieveParser(SieveParser sieveParser) {
_sieveParser = sieveParser;
}
@@ -224,6 +224,11 @@
<artifactId>activation</artifactId>
<version>${activation.version}</version>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-activation_1.1_spec</artifactId>

0 comments on commit ae4d04a

Please sign in to comment.