Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed StartupListener and all impls

  • Loading branch information...
commit f9e96b3fcaa8c5a7ff7eea4fda1bbe8c1fe6247c 1 parent fab6343
Jennifer Hickey authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 hqu/hqapi1/app/MetricdataController.groovy
View
6 hqu/hqapi1/app/MetricdataController.groovy
@@ -1,7 +1,9 @@
+import org.hyperic.hq.context.Bootstrap;
import org.hyperic.hq.hqapi1.ErrorCode;
-import org.hyperic.hq.measurement.server.session.MeasurementStartupListener as MListener
+
import org.hyperic.hq.measurement.server.session.DataPoint as DP
+import org.hyperic.hq.measurement.server.session.MeasurementInserterHolder;
class MetricdataController extends ApiController {
@@ -219,7 +221,7 @@ class MetricdataController extends ApiController {
}
def put(params) {
- def inserter = MListener.dataInserter
+ def inserter = Bootstrap.getBean(MeasurementInserterHolder.class).dataInserter
def failureXml = null
def dataRequest = new XmlParser().parseText(getPostData())
Please sign in to comment.
Something went wrong with that request. Please try again.