Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove the use of the @Inject annotation.

  • Loading branch information...
commit 6cda530a12a84e29772c01309503a7c4e3f31949 1 parent ccf6226
Jim Carroll authored
View
4 lib-dempsyimpl/pom.xml
@@ -35,10 +35,6 @@
<artifactId>jackson-mapper-asl</artifactId>
</dependency>
<dependency>
- <groupId>javax.inject</groupId>
- <artifactId>javax.inject</artifactId>
- </dependency>
- <dependency>
<groupId>com.yammer.metrics</groupId>
<artifactId>metrics-core</artifactId>
</dependency>
View
9 lib-dempsyimpl/src/main/java/com/nokia/dempsy/Dempsy.java
@@ -22,8 +22,6 @@
import java.util.List;
import java.util.Map;
-import javax.inject.Inject;
-
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MarkerFactory;
@@ -427,7 +425,6 @@ public Dempsy() { }
/**
* This is meant to be autowired by type.
*/
- @Inject
public void setApplicationDefinitions(List<ApplicationDefinition> applicationDefinitions)
{
this.applicationDefinitions = applicationDefinitions;
@@ -524,12 +521,10 @@ public ClusterInfoSessionFactory getClusterSessionFactory()
return clusterSessionFactory;
}
- @Inject
public void setClusterSessionFactory(ClusterInfoSessionFactory clusterFactory) {
this.clusterSessionFactory = clusterFactory;
}
- @Inject
public void setClusterCheck(CurrentClusterCheck clusterCheck)
{
this.clusterCheck = clusterCheck;
@@ -537,16 +532,12 @@ public void setClusterCheck(CurrentClusterCheck clusterCheck)
// public void setMultithreadedStart(boolean multiThreadedStart) { this.multiThreadedStart = multiThreadedStart; }
- @Inject
public void setDefaultTransport(Transport transport) { this.transport = transport; }
- @Inject
public void setDefaultRoutingStrategy(RoutingStrategy defaultRoutingStrategy) { this.defaultRoutingStrategy = defaultRoutingStrategy; }
- @Inject
public void setDefaultSerializer(Serializer<Object> defaultSerializer) { this.defaultSerializer = defaultSerializer; }
- @Inject
public void setDefaultStatsCollectorFactory(StatsCollectorFactory defaultfactory) { this.defaultStatsCollectorFactory = defaultfactory; }
public Application.Cluster getCluster(ClusterId clusterId)
View
3  lib-dempsyimpl/src/main/java/com/nokia/dempsy/cluster/zookeeper/ZookeeperSessionFactory.java
@@ -18,8 +18,6 @@
import java.io.IOException;
-import javax.inject.Inject;
-
import org.apache.zookeeper.ZooKeeper;
import com.nokia.dempsy.cluster.ClusterInfoException;
@@ -32,7 +30,6 @@
private String connectString;
private int sessionTimeout;
- @Inject
public ZookeeperSessionFactory(String connectString, int sessionTimeout)
{
this.connectString = connectString;
View
6 lib-dempsyimpl/src/main/java/com/nokia/dempsy/router/SpecificClusterCheck.java
@@ -16,8 +16,6 @@
package com.nokia.dempsy.router;
-import javax.inject.Inject;
-
import com.nokia.dempsy.config.ClusterId;
/**
@@ -29,7 +27,6 @@
{
private ClusterId currentCluster = null;
- @Inject
public SpecificClusterCheck(ClusterId clusterId) { this.currentCluster = clusterId; }
@Override
@@ -44,7 +41,4 @@ public boolean isThisNodePartOfApplication(String applicationName)
String curApplicationName = currentCluster == null ? null : currentCluster.getApplicationName();
return curApplicationName == null ? false : curApplicationName.equals(applicationName);
}
-
-
-
}
View
5 pom.xml
@@ -157,11 +157,6 @@
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.7</version>
</dependency>
- <dependency>
- <groupId>javax.inject</groupId>
- <artifactId>javax.inject</artifactId>
- <version>1</version>
- </dependency>
<dependency>
<groupId>org.springframework</groupId>
Please sign in to comment.
Something went wrong with that request. Please try again.