Author: swd847
Date: 2010-10-04 16:03:56 -0400 (Mon, 04 Oct 2010)
New Revision: 13790
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/FlushModeManagerImpl.java
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextExtension.java
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/hibernate/HibernateManagedPersistenceContextExtension.java
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/DefaultSeamTransaction.java
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/EjbSynchronizations.java
Log:
update to work with latest weld extensions
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/FlushModeManagerImpl.java
===================================================================
---
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/FlushModeManagerImpl.java 2010-10-04
13:34:17 UTC (rev 13789)
+++
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/FlushModeManagerImpl.java 2010-10-04
20:03:56 UTC (rev 13790)
@@ -25,7 +25,7 @@
import javax.enterprise.context.ApplicationScoped;
-import org.jboss.weld.extensions.defaultbean.DefaultBean;
+import org.jboss.weld.extensions.bean.defaultbean.DefaultBean;
/**
* Provides for programmatic configuration of the default flush mode.
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextExtension.java
===================================================================
---
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextExtension.java 2010-10-04
13:34:17 UTC (rev 13789)
+++
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextExtension.java 2010-10-04
20:03:56 UTC (rev 13790)
@@ -290,15 +290,15 @@
// create the new bean to be registered later
ManagedPersistenceContextBeanLifecycle lifecycle = new
ManagedPersistenceContextBeanLifecycle(qualifiers, loader, manager, additionalInterfaces,
persistenceProviders);
AnnotatedTypeBuilder<EntityManager> typeBuilder = new
AnnotatedTypeBuilder().setJavaClass(EntityManager.class);
- BeanBuilder<EntityManager> builder = new
BeanBuilder<EntityManager>(manager).defineBeanFromAnnotatedType(typeBuilder.create());
- builder.setQualifiers(qualifiers);
- builder.setScope(scope);
- builder.setBeanClass(member.getDeclaringType().getJavaClass());
+ BeanBuilder<EntityManager> builder = new
BeanBuilder<EntityManager>(manager).readFromType(typeBuilder.create());
+ builder.qualifiers(qualifiers);
+ builder.scope(scope);
+ builder.beanClass(member.getDeclaringType().getJavaClass());
builder.getTypes().add(ManagedPersistenceContext.class);
builder.getTypes().addAll(additionalInterfaces);
builder.getTypes().add(Object.class);
- builder.setBeanLifecycle(lifecycle);
- builder.setAlternative(alternative);
+ builder.beanLifecycle(lifecycle);
+ builder.alternative(alternative);
builder.setToString("Seam Managed Persistence Context with qualifiers ["
+ qualifiers + "] with configured by [" + member + "]");
beans.add(builder.create());
}
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/hibernate/HibernateManagedPersistenceContextExtension.java
===================================================================
---
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/hibernate/HibernateManagedPersistenceContextExtension.java 2010-10-04
13:34:17 UTC (rev 13789)
+++
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/hibernate/HibernateManagedPersistenceContextExtension.java 2010-10-04
20:03:56 UTC (rev 13790)
@@ -178,13 +178,13 @@
// create the new bean to be registered later
HibernateManagedPersistenceContextBeanLifecycle lifecycle = new
HibernateManagedPersistenceContextBeanLifecycle(qualifiers, loader, manager);
AnnotatedTypeBuilder<Session> typeBuilder = new
AnnotatedTypeBuilder().setJavaClass(Session.class);
- BeanBuilder<Session> builder = new
BeanBuilder<Session>(manager).defineBeanFromAnnotatedType(typeBuilder.create());
- builder.setQualifiers(qualifiers);
- builder.setScope(scope);
+ BeanBuilder<Session> builder = new
BeanBuilder<Session>(manager).readFromType(typeBuilder.create());
+ builder.qualifiers(qualifiers);
+ builder.scope(scope);
builder.getTypes().add(ManagedPersistenceContext.class);
builder.getTypes().addAll(additionalInterfaces);
builder.getTypes().add(Object.class);
- builder.setBeanLifecycle(lifecycle);
+ builder.beanLifecycle(lifecycle);
beans.add(builder.create());
}
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/DefaultSeamTransaction.java
===================================================================
---
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/DefaultSeamTransaction.java 2010-10-04
13:34:17 UTC (rev 13789)
+++
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/DefaultSeamTransaction.java 2010-10-04
20:03:56 UTC (rev 13790)
@@ -35,7 +35,7 @@
import org.jboss.seam.persistence.util.EJBContextUtils;
import org.jboss.seam.persistence.util.NamingUtils;
-import org.jboss.weld.extensions.defaultbean.DefaultBean;
+import org.jboss.weld.extensions.bean.defaultbean.DefaultBean;
/**
*
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/EjbSynchronizations.java
===================================================================
---
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/EjbSynchronizations.java 2010-10-04
13:34:17 UTC (rev 13789)
+++
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/transaction/EjbSynchronizations.java 2010-10-04
20:03:56 UTC (rev 13790)
@@ -35,7 +35,7 @@
import javax.inject.Inject;
import javax.transaction.Synchronization;
-import org.jboss.weld.extensions.defaultbean.DefaultBean;
+import org.jboss.weld.extensions.bean.defaultbean.DefaultBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Show replies by date