Author: richard.opalka(a)jboss.com
Date: 2009-01-29 11:24:23 -0500 (Thu, 29 Jan 2009)
New Revision: 9166
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java
Log:
[JBWS-2504] KRE -> CC
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java 2009-01-29
09:24:55 UTC (rev 9165)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/extensions/eventing/mgmt/SubscriptionManagerFactory.java 2009-01-29
16:24:23 UTC (rev 9166)
@@ -21,19 +21,19 @@
*/
package org.jboss.ws.extensions.eventing.mgmt;
-import org.jboss.kernel.spi.registry.KernelRegistry;
-import org.jboss.kernel.spi.registry.KernelRegistryEntry;
+import org.jboss.dependency.spi.ControllerContext;
+import org.jboss.kernel.spi.dependency.KernelController;
import org.jboss.wsf.spi.util.KernelLocator;
/**
+ * Subscription manager factory impl
+ * @author richard.opalka(a)jboss.com
* @author Heiko Braun, <heiko(a)openj.net>
- * @since 22-Mar-2006
*/
public class SubscriptionManagerFactory
{
private static SubscriptionManagerFactory instance = new
SubscriptionManagerFactory();
- // Hide ctor
protected SubscriptionManagerFactory()
{
}
@@ -45,8 +45,9 @@
public SubscriptionManagerMBean getSubscriptionManager()
{
- KernelRegistry registry = KernelLocator.getKernel().getRegistry();
- KernelRegistryEntry entry = registry.getEntry(SubscriptionManagerMBean.BEAN_NAME);
- return (SubscriptionManagerMBean)entry.getTarget();
+
+ KernelController controller = KernelLocator.getKernel().getController();
+ ControllerContext ctx =
controller.getInstalledContext(SubscriptionManagerMBean.BEAN_NAME);
+ return (SubscriptionManagerMBean)ctx.getTarget();
}
}