Author: swd847
Date: 2010-07-28 07:39:52 -0400 (Wed, 28 Jul 2010)
New Revision: 13524
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/QueryParser.java
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/TransactionExtension.java
Log:
update to work with latest weld extensions
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/QueryParser.java
===================================================================
---
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/QueryParser.java 2010-07-28
09:59:16 UTC (rev 13523)
+++
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/QueryParser.java 2010-07-28
11:39:52 UTC (rev 13524)
@@ -27,6 +27,11 @@
import org.jboss.weld.extensions.el.Expressions;
+/**
+ *
+ * Parses hql queries and replaces el with named parameters
+ *
+ */
public class QueryParser
{
private final List<Object> parameterValues = new ArrayList<Object>();
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/TransactionExtension.java
===================================================================
---
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/TransactionExtension.java 2010-07-28
09:59:16 UTC (rev 13523)
+++
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/TransactionExtension.java 2010-07-28
11:39:52 UTC (rev 13524)
@@ -59,7 +59,7 @@
private static final Logger log =
LoggerFactory.getLogger(TransactionExtension.class);
- public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager
manager)
+ public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager
manager, DefaultBeanExtension defaultBeanExtension)
{
AnnotatedTypeBuilder<SeamTransaction> utbuilder = new
AnnotatedTypeBuilder().setJavaClass(SeamTransaction.class);
BeanBuilder<SeamTransaction> builder = new
BeanBuilder<SeamTransaction>(manager);
@@ -67,7 +67,7 @@
builder.setBeanLifecycle(new TransactionBeanLifecycle(manager));
builder.getQualifiers().clear();
builder.getQualifiers().add(DefaultTransactionLiteral.INSTANCE);
- DefaultBeanExtension.addDefaultBean(SeamTransaction.class, builder.create());
+ defaultBeanExtension.addDefaultBean(SeamTransaction.class, builder.create());
}
/**
Show replies by date