diff --git a/opentripplanner-api-webapp/pom.xml b/opentripplanner-api-webapp/pom.xml
index c37db959af7..db095365ded 100644
--- a/opentripplanner-api-webapp/pom.xml
+++ b/opentripplanner-api-webapp/pom.xml
@@ -164,6 +164,12 @@
com.sun.jersey
jersey-grizzly2
+
+
+ javax.inject
+ javax.inject
+ 1
+
junit
diff --git a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/standalone/InjectedRESTResource.java b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/standalone/InjectedRESTResource.java
new file mode 100644
index 00000000000..2330ad9e78f
--- /dev/null
+++ b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/standalone/InjectedRESTResource.java
@@ -0,0 +1,27 @@
+package org.opentripplanner.api.standalone;
+
+import javax.annotation.Resource;
+import javax.ws.rs.DefaultValue;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
+
+import com.sun.jersey.spi.resource.Singleton;
+
+@Path("/inject")
+@Singleton
+public class InjectedRESTResource {
+
+ // @Resource Thing t;
+
+ @GET
+ @Produces({ MediaType.TEXT_PLAIN })
+ public String get(
+ @QueryParam("x") @DefaultValue("4") double x,
+ @QueryParam("y") @DefaultValue("6") double y) {
+ return "x=" + x + " y=" + y;
+ }
+
+}
diff --git a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/standalone/JerseyInjector.java b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/standalone/JerseyInjector.java
new file mode 100644
index 00000000000..8232b18256c
--- /dev/null
+++ b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/standalone/JerseyInjector.java
@@ -0,0 +1,39 @@
+package org.opentripplanner.api.standalone;
+
+import java.lang.reflect.Type;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.annotation.Resource;
+import javax.ws.rs.ext.Provider;
+
+import com.sun.jersey.core.spi.component.ComponentContext;
+import com.sun.jersey.core.spi.component.ComponentScope;
+import com.sun.jersey.spi.inject.Injectable;
+import com.sun.jersey.spi.inject.InjectableProvider;
+
+@Provider
+public class JerseyInjector implements InjectableProvider {
+
+ static Map m = new HashMap();
+
+ public static void put(Type key, Object value) {
+ m.put(key, value);
+ }
+
+ @Override
+ public ComponentScope getScope() {
+ return ComponentScope.Singleton;
+ }
+
+ @Override
+ public Injectable
+
+
+ javax.inject
+ javax.inject
+ 1
+