org.jboss.seam.persistence
Annotation Type SeamManaged


@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
@Documented
public @interface SeamManaged

Signifies that a resource producer field or producer method that produces an EntityManagerFactory should also produce a Seam managed persistence context. For example:

 @SeamManaged
 @Produces
 @PersistenceUnit
 @ConversationScoped
 @SomeQualifier
 EntityManagerFactory emf;
 

Will create a conversation scoped seam managed persistence context that is conversation scoped with the qualifier @SomeQualifier.

This field still produces the EntityManagerFactory with qualifier @SomeQualifier, however the scope for the producer field is changed to Dependent, as the specification does not allow resource producer fields to have a scope other than Dependent

Author:
Stuart Douglas



Copyright © 2011 Seam Framework. All Rights Reserved.