Class ForwardingJpaInjectionServices
- java.lang.Object
-
- org.jboss.weld.injection.spi.helpers.ForwardingJpaInjectionServices
-
- All Implemented Interfaces:
Service,JpaInjectionServices
public abstract class ForwardingJpaInjectionServices extends Object implements JpaInjectionServices
An implementation ofJpaInjectionServiceswhich forwards all its method calls to anotherJpaInjectionServices. Subclasses should override one or more methods to modify the behavior of the backingJpaInjectionServicesas desired per the decorator pattern.- Author:
- Pete Muir
-
-
Constructor Summary
Constructors Constructor Description ForwardingJpaInjectionServices()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract JpaInjectionServicesdelegate()booleanequals(Object obj)inthashCode()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.StringtoString()
-
-
-
Method Detail
-
delegate
protected abstract JpaInjectionServices delegate()
-
registerPersistenceContextInjectionPoint
public ResourceReferenceFactory<javax.persistence.EntityManager> registerPersistenceContextInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Description copied from interface:JpaInjectionServicesRegister a persistence context injection point. The implementation validates the injection point. If the validation passes, an instance ofResourceReferenceFactoryis returned which may be used at runtime for creating instances of the resource.- Specified by:
registerPersistenceContextInjectionPointin interfaceJpaInjectionServices- Parameters:
injectionPoint- the injection point metadata- Returns:
- factory for obtaining
EntityManagerinstances
-
registerPersistenceUnitInjectionPoint
public ResourceReferenceFactory<javax.persistence.EntityManagerFactory> registerPersistenceUnitInjectionPoint(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Description copied from interface:JpaInjectionServicesRegister a persistence unit injection point. The implementation validates the injection point. If the validation passes, an instance ofResourceReferenceFactoryis returned which may be used at runtime for creating instances of the resource.- Specified by:
registerPersistenceUnitInjectionPointin interfaceJpaInjectionServices- Parameters:
injectionPoint- the injection point metadata- Returns:
- factory for obtaining
EntityManagerFactoryinstances
-
-