Author: chris.laprun(a)jboss.com
Date: 2009-12-11 12:51:45 -0500 (Fri, 11 Dec 2009)
New Revision: 996
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java
Log:
- Register the ProducerConfigurationService and ConsumerRegistry with the kernel so that
it can be used by other services (admin GUI in particular).
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java 2009-12-11
16:57:47 UTC (rev 995)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java 2009-12-11
17:51:45 UTC (rev 996)
@@ -1,5 +1,9 @@
-/**
- * Copyright (C) 2009 eXo Platform SAS.
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2009, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
@@ -45,6 +49,7 @@
import org.gatein.wsrp.consumer.registry.ConsumerRegistry;
import org.gatein.wsrp.producer.ProducerHolder;
import org.gatein.wsrp.producer.WSRPProducer;
+import org.gatein.wsrp.producer.config.ProducerConfigurationService;
import org.picocontainer.Startable;
import java.io.InputStream;
@@ -117,6 +122,7 @@
{
throw new RuntimeException("Couldn't load WSRP producer configuration
from " + producerConfigLocation, e);
}
+ container.registerComponentInstance(ProducerConfigurationService.class,
producerConfigurationService);
RegistrationPersistenceManager registrationPersistenceManager = new
RegistrationPersistenceManagerImpl();
RegistrationManager registrationManager = new RegistrationManagerImpl();
@@ -175,6 +181,7 @@
{
throw new RuntimeException("Couldn't start WSRP consumers
registry.", e);
}
+ container.registerComponentInstance(ConsumerRegistry.class, consumerRegistry);
}
public void stop()
Show replies by date