Package org.jboss.as.jpa.container
Class ExtendedPersistenceShallowInheritance
- java.lang.Object
-
- org.jboss.as.jpa.container.ExtendedPersistenceShallowInheritance
-
- All Implemented Interfaces:
ExtendedPersistenceInheritanceStrategy
public final class ExtendedPersistenceShallowInheritance extends Object implements ExtendedPersistenceInheritanceStrategy
- Author:
- Scott Marlow
-
-
Field Summary
Fields Modifier and Type Field Description static ExtendedPersistenceShallowInheritanceINSTANCE
-
Constructor Summary
Constructors Constructor Description ExtendedPersistenceShallowInheritance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendedEntityManagerfindExtendedPersistenceContext(String puScopedName)Check if the current EJB container instance contains the specified extended persistence context.voidregisterExtendedPersistenceContext(String scopedPuName, ExtendedEntityManager entityManager)Register the extended persistence context so it is accessible to other SFSB's during the creation process.
-
-
-
Field Detail
-
INSTANCE
public static final ExtendedPersistenceShallowInheritance INSTANCE
-
-
Method Detail
-
registerExtendedPersistenceContext
public void registerExtendedPersistenceContext(String scopedPuName, ExtendedEntityManager entityManager)
Description copied from interface:ExtendedPersistenceInheritanceStrategyRegister the extended persistence context so it is accessible to other SFSB's during the creation process. Used when the SFSB bean is injecting fields (at creation time), after the bean is created but before its PostConstruct has been invoked.- Specified by:
registerExtendedPersistenceContextin interfaceExtendedPersistenceInheritanceStrategy
-
findExtendedPersistenceContext
public ExtendedEntityManager findExtendedPersistenceContext(String puScopedName)
Description copied from interface:ExtendedPersistenceInheritanceStrategyCheck if the current EJB container instance contains the specified extended persistence context. This is expected to be used when the SFSB bean is injecting fields, after it the bean is created but before its PostConstruct has been invoked.- Specified by:
findExtendedPersistenceContextin interfaceExtendedPersistenceInheritanceStrategy- Parameters:
puScopedName- Scoped pu name- Returns:
- the extended persistence context that matches puScopedName or null if not found
-
-