public class PersistenceContextInjectionSource extends InjectionSource
InjectionSource.ResolutionContext
Constructor and Description |
---|
PersistenceContextInjectionSource(javax.persistence.PersistenceContextType type,
Map properties,
org.jboss.msc.service.ServiceName puServiceName,
DeploymentUnit deploymentUnit,
String scopedPuName,
String injectionTypeName,
PersistenceUnitMetadata pu)
Constructor for the PersistenceContextInjectorService
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
void |
getResourceValue(InjectionSource.ResolutionContext resolutionContext,
org.jboss.msc.service.ServiceBuilder<?> serviceBuilder,
DeploymentPhaseContext phaseContext,
org.jboss.msc.inject.Injector<ManagedReferenceFactory> injector)
Get the value to use as the injection source.
|
int |
hashCode() |
public PersistenceContextInjectionSource(javax.persistence.PersistenceContextType type, Map properties, org.jboss.msc.service.ServiceName puServiceName, DeploymentUnit deploymentUnit, String scopedPuName, String injectionTypeName, PersistenceUnitMetadata pu)
type
- The persistence context typeproperties
- The persistence context propertiespuServiceName
- represents the deployed persistence.xml that we are going to use.deploymentUnit
- represents the deployment that we are injecting intoscopedPuName
- the fully scoped reference to the persistence.xmlinjectionTypeName
- is normally "javax.persistence.EntityManager" but could be a different target class
for example "org.hibernate.Session" in which case, EntityManager.unwrap(org.hibernate.Session.class is called)pu
- public void getResourceValue(InjectionSource.ResolutionContext resolutionContext, org.jboss.msc.service.ServiceBuilder<?> serviceBuilder, DeploymentPhaseContext phaseContext, org.jboss.msc.inject.Injector<ManagedReferenceFactory> injector) throws DeploymentUnitProcessingException
InjectionSource
getResourceValue
in class InjectionSource
resolutionContext
- the resolution context to useserviceBuilder
- the builder for the binder servicephaseContext
- the deployment phase contextinjector
- the injector into which the value should be placedDeploymentUnitProcessingException
- if an error occursCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.