public interface JpaInjectionServices extends Service
JpaInjectionServices is a per-module service.| Modifier and Type | Method and Description |
|---|---|
ResourceReferenceFactory<javax.persistence.EntityManager> |
registerPersistenceContextInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Register a persistence context injection point.
|
ResourceReferenceFactory<javax.persistence.EntityManagerFactory> |
registerPersistenceUnitInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Register a persistence unit injection point.
|
javax.persistence.EntityManager |
resolvePersistenceContext(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Deprecated.
Instead of calling this method at runtime, Weld should register
every persistence context injection point at bootstrap using
registerPersistenceContextInjectionPoint(InjectionPoint)
and use the returned factory for producing injectable instances at runtime. |
javax.persistence.EntityManagerFactory |
resolvePersistenceUnit(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Deprecated.
Instead of calling this method at runtime, Weld should register
every persistence unit injection point at bootstrap using
registerPersistenceUnitInjectionPoint(InjectionPoint)
and use the returned factory for producing injectable instances at runtime. |
ResourceReferenceFactory<javax.persistence.EntityManager> registerPersistenceContextInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
ResourceReferenceFactory is returned which may be used at runtime for creating instances of the resource.injectionPoint - the injection point metadataIllegalArgumentException - if the injection point is not annotated withIllegalStateException - if no suitable persistence units can be resolvedResourceReferenceFactory<javax.persistence.EntityManagerFactory> registerPersistenceUnitInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
ResourceReferenceFactory is returned which may be used at runtime for creating instances of the resource.injectionPoint - the injection point metadataIllegalArgumentException - if the injection point is not annotated withIllegalStateException - if no suitable persistence units can be resolved@Deprecated javax.persistence.EntityManager resolvePersistenceContext(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
registerPersistenceContextInjectionPoint(InjectionPoint)
and use the returned factory for producing injectable instances at runtime.injectionPoint - the injection point metadataIllegalArgumentException - if the injection point is not annotated withIllegalStateException - if no suitable persistence units can be resolved for injection@Deprecated javax.persistence.EntityManagerFactory resolvePersistenceUnit(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
registerPersistenceUnitInjectionPoint(InjectionPoint)
and use the returned factory for producing injectable instances at runtime.injectionPoint - the injection point metadataIllegalArgumentException - if the injection point is not annotated withIllegalStateException - if no suitable persistence units can be resolved for injectionCopyright © 2008-2013 Seam Framework. All Rights Reserved.