Package org.jboss.as.jpa.container
Class ExtendedPersistenceDeepInheritance
- java.lang.Object
-
- org.jboss.as.jpa.container.ExtendedPersistenceDeepInheritance
-
- All Implemented Interfaces:
ExtendedPersistenceInheritanceStrategy
public final class ExtendedPersistenceDeepInheritance extends Object implements ExtendedPersistenceInheritanceStrategy
ExtendedPersistenceInheritance.DEEP inheritance strategy where we can inherit from any bean being created or from the parent bean call stack.- Author:
- Scott Marlow
-
-
Field Summary
Fields Modifier and Type Field Description static ExtendedPersistenceDeepInheritanceINSTANCE
-
Constructor Summary
Constructors Constructor Description ExtendedPersistenceDeepInheritance()
-
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 ExtendedPersistenceDeepInheritance 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
-
-