org.jboss.weld.injection.spi.helpers
Class ForwardingJpaInjectionServices

java.lang.Object
  extended by org.jboss.weld.injection.spi.helpers.ForwardingJpaInjectionServices
All Implemented Interfaces:
Service, JpaInjectionServices

public abstract class ForwardingJpaInjectionServices
extends Object
implements JpaInjectionServices

An implementation of 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.

Author:
Pete Muir

Constructor Summary
ForwardingJpaInjectionServices()
           
 
Method Summary
protected abstract  JpaInjectionServices delegate()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.bootstrap.api.Service
cleanup
 

Constructor Detail

ForwardingJpaInjectionServices

public ForwardingJpaInjectionServices()
Method Detail

delegate

protected abstract JpaInjectionServices delegate()

resolvePersistenceContext

public javax.persistence.EntityManager resolvePersistenceContext(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Description copied from interface: JpaInjectionServices
Resolve the value for the given @PersistenceContext injection point

Specified by:
resolvePersistenceContext in interface JpaInjectionServices
Parameters:
injectionPoint - the injection point metadata
Returns:
an instance of the entity manager

resolvePersistenceUnit

public javax.persistence.EntityManagerFactory resolvePersistenceUnit(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Description copied from interface: JpaInjectionServices
Resolve the value for the given @PersistenceUnit injection point

Specified by:
resolvePersistenceUnit in interface JpaInjectionServices
Parameters:
injectionPoint - the injection point metadata
Returns:
an instance of the entity manager

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013 Seam Framework. All Rights Reserved.