Permalink
Browse files

Removed several getOnes

  • Loading branch information...
1 parent d2e33eb commit 3897840beab9c8899c4ae7d8a64c79f57a224064 Jennifer Hickey committed Jan 29, 2010
Showing with 6 additions and 4 deletions.
  1. +3 −2 hqu/hqapi1/app/AlertdefinitionController.groovy
  2. +3 −2 hqu/hqapi1/app/EventController.groovy
@@ -4,8 +4,9 @@ import org.hyperic.hq.hqapi1.ErrorCode
import org.hyperic.hq.auth.shared.SessionManager
import org.hyperic.hq.authz.shared.PermissionException
import org.hyperic.hq.appdef.shared.AppdefEntityID
+import org.hyperic.hq.bizapp.shared.EventsBoss;
import org.hyperic.hq.appdef.shared.AppdefEntityTypeID
-import org.hyperic.hq.bizapp.server.session.EventsBossImpl as EventsBoss
+import org.hyperic.hq.context.Bootstrap;
import org.hyperic.hq.events.AlertSeverity
import org.hyperic.hq.events.EventConstants
import org.hyperic.hq.events.shared.ActionValue
@@ -18,7 +19,7 @@ import org.hyperic.util.config.ConfigResponse
import ApiController
public class AlertdefinitionController extends ApiController {
- private eventBoss = EventsBoss.one
+ private eventBoss = Bootstrap.gtBean(EventsBoss.class)
private aMan = AMan.one
private EVENT_LEVEL_TO_NUM = [
@@ -1,13 +1,14 @@
+import org.hyperic.hq.events.shared.EventLogManager;
import org.hyperic.hq.hqapi1.ErrorCode
import org.hyperic.hq.events.EventLogStatus
-import org.hyperic.hq.events.server.session.EventLogManagerImpl as EMan
+import org.hyperic.hq.context.Bootstrap;
import org.hyperic.hq.events.server.session.EventLogSortField
import org.hyperic.hibernate.PageInfo
class EventController extends ApiController {
- private eMan = EMan.one
+ private eMan = Bootstrap.getBean(EventLogManager.class)
private Closure getEventXML(e) {
{ doc ->

0 comments on commit 3897840

Please sign in to comment.