Class PersistenceUnitInjectionSource


  • public class PersistenceUnitInjectionSource
    extends org.jboss.as.ee.component.InjectionSource
    Represents the PersistenceUnit injected into a component. TODO: support injecting into a HibernateSessionFactory. Initially, hack it by checking injectionTypeName parameter for HibernateSessionFactory. If/when Jakarta Persistence supports unwrap on the EMF, switch to that.
    Author:
    Scott Marlow
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.jboss.as.ee.component.InjectionSource

        org.jboss.as.ee.component.InjectionSource.ResolutionContext
    • Constructor Detail

      • PersistenceUnitInjectionSource

        public PersistenceUnitInjectionSource​(org.jboss.msc.service.ServiceName puServiceName,
                                              org.jboss.msc.service.ServiceRegistry serviceRegistry,
                                              String injectionTypeName,
                                              PersistenceUnitMetadata pu)
    • Method Detail

      • getResourceValue

        public void getResourceValue​(org.jboss.as.ee.component.InjectionSource.ResolutionContext resolutionContext,
                                     org.jboss.msc.service.ServiceBuilder<?> serviceBuilder,
                                     org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext,
                                     org.jboss.msc.inject.Injector<org.jboss.as.naming.ManagedReferenceFactory> injector)
                              throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
        Specified by:
        getResourceValue in class org.jboss.as.ee.component.InjectionSource
        Throws:
        org.jboss.as.server.deployment.DeploymentUnitProcessingException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object