Author: chris.laprun(a)jboss.com
Date: 2009-11-24 06:49:59 -0500 (Tue, 24 Nov 2009)
New Revision: 782
Modified:
portal/branches/wsrp-integration/component/wsrp/pom.xml
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/configuration/JCRProducerConfigurationService.java
Log:
- Add the APT module of Chromattic so that annotations are processed.
- Initialize persister in JCRProducerConfigurationService (NPE otherwise!).
Modified: portal/branches/wsrp-integration/component/wsrp/pom.xml
===================================================================
--- portal/branches/wsrp-integration/component/wsrp/pom.xml 2009-11-24 11:22:31 UTC (rev
781)
+++ portal/branches/wsrp-integration/component/wsrp/pom.xml 2009-11-24 11:49:59 UTC (rev
782)
@@ -104,6 +104,14 @@
<scope>provided</scope>
</dependency>
+ <!-- Required to process Chromattic annotations -->
+ <dependency>
+ <groupId>org.chromattic</groupId>
+ <artifactId>chromattic.apt</artifactId>
+ <version>${version.chromattic}</version>
+ <scope>provided</scope>
+ </dependency>
+
<!-- tests -->
<dependency>
<groupId>org.chromattic</groupId>
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/configuration/JCRProducerConfigurationService.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/configuration/JCRProducerConfigurationService.java 2009-11-24
11:22:31 UTC (rev 781)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/configuration/JCRProducerConfigurationService.java 2009-11-24
11:49:59 UTC (rev 782)
@@ -42,7 +42,7 @@
*/
public class JCRProducerConfigurationService extends
AbstractProducerConfigurationService
{
- private JCRPersister persister;
+ private JCRPersister persister = new JCRPersister();
private static String PRODUCER_CONFIGURATION_PATH = JCRPersister.WSRP_SERVICES_PATH +
"producerconfiguration";
private InputStream defaultConfigurationIS;
Show replies by date