public abstract class ForwardingJpaInjectionServices extends Object implements JpaInjectionServices
JpaInjectionServices
which forwards all its method calls to another JpaInjectionServices
. Subclasses should override one or more methods to modify the behavior of the backing JpaInjectionServices
as
desired per the decorator pattern.Constructor and Description |
---|
ForwardingJpaInjectionServices() |
Modifier and Type | Method and Description |
---|---|
protected abstract JpaInjectionServices |
delegate() |
boolean |
equals(Object obj) |
int |
hashCode() |
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)
Resolve the value for the given
PersistenceContext injection point |
javax.persistence.EntityManagerFactory |
resolvePersistenceUnit(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Resolve the value for the given
PersistenceUnit injection point |
String |
toString() |
protected abstract JpaInjectionServices delegate()
public ResourceReferenceFactory<javax.persistence.EntityManager> registerPersistenceContextInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
JpaInjectionServices
ResourceReferenceFactory
is returned which may be used at runtime for creating instances
of the resource.registerPersistenceContextInjectionPoint
in interface JpaInjectionServices
injectionPoint
- the injection point metadataEntityManager
instancespublic ResourceReferenceFactory<javax.persistence.EntityManagerFactory> registerPersistenceUnitInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
JpaInjectionServices
ResourceReferenceFactory
is returned which may be used at runtime for creating instances of the
resource.registerPersistenceUnitInjectionPoint
in interface JpaInjectionServices
injectionPoint
- the injection point metadataEntityManagerFactory
instancespublic javax.persistence.EntityManager resolvePersistenceContext(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
JpaInjectionServices
PersistenceContext
injection pointresolvePersistenceContext
in interface JpaInjectionServices
injectionPoint
- the injection point metadatapublic javax.persistence.EntityManagerFactory resolvePersistenceUnit(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
JpaInjectionServices
PersistenceUnit
injection pointresolvePersistenceUnit
in interface JpaInjectionServices
injectionPoint
- the injection point metadataCopyright © 2008-2015. All Rights Reserved.