public void loadXml(X xml, InjectionContainer container) { if (xml == null) return; if (xml.getPersistenceUnitRefs() == null) return; for (PersistenceUnitReferenceMetaData ref : xml.getPersistenceUnitRefs()) { String encName = "env/" + ref.getPersistenceUnitRefName(); Utils.injectionTarget(encName, ref, container); } } }
public void loadXml(X xml, InjectionContainer container) { if (xml == null) return; if (xml.getPersistenceUnitRefs() == null) return; for (PersistenceUnitReferenceMetaData ref : xml.getPersistenceUnitRefs()) { String encName = "env/" + ref.getPersistenceUnitRefName(); // we add injection target no matter what. enc injection might be overridden but // XML injection cannot be overriden Class<?> injectionType = InjectionUtil.injectionTarget(encName, ref, container, container.getEncInjections()); if (container.getEncInjectors().containsKey(encName)) return; container.getEncInjectors().put(encName, new PuEncInjector(encName, injectionType, ref.getPersistenceUnitName(), "<persistence-unit-ref>")); try { addPUDependency(ref.getPersistenceUnitName(), container); } catch (NameNotFoundException e) { throw new RuntimeException("Illegal <persistence-unit-ref> of " + ref.getPersistenceUnitRefName() + " :" + e.getMessage()); } } }
public void loadXml(X xml, InjectionContainer container) { if (xml == null) return; if (xml.getPersistenceUnitRefs() == null) return; for (PersistenceUnitReferenceMetaData ref : xml.getPersistenceUnitRefs()) { String encName = "env/" + ref.getPersistenceUnitRefName(); // we add injection target no matter what. enc injection might be overridden but // XML injection cannot be overriden Class<?> injectionType = InjectionUtil.injectionTarget(encName, ref, container, container.getEncInjections()); if (container.getEncInjectors().containsKey(encName)) return; container.getEncInjectors().put(encName, new RemotePuEncInjector(encName, injectionType, ref.getPersistenceUnitName(), "<persistence-unit-ref>")); try { PersistenceUnitHandler.addPUDependency(ref.getPersistenceUnitName(), container); } catch (NameNotFoundException e) { throw new RuntimeException("Illegal <persistence-unit-ref> of " + ref.getPersistenceUnitRefName() + " :" + e.getMessage()); } } }
return bindingConfigurations; PersistenceUnitReferencesMetaData persistenceUnitRefs = environment.getEnvironment().getPersistenceUnitRefs();
return bindingConfigurations; PersistenceUnitReferencesMetaData persistenceUnitRefs = environment.getEnvironment().getPersistenceUnitRefs();
resEnvRefs = environmentRefsGroup.getResourceEnvironmentReferences(); messageDestinationRefs = environmentRefsGroup.getMessageDestinationReferences(); persistenceUnitRefs = environmentRefsGroup.getPersistenceUnitRefs(); postConstructs = environmentRefsGroup.getPostConstructs(); preDestroys = environmentRefsGroup.getPreDestroys();
resEnvRefs = environmentRefsGroup.getResourceEnvironmentReferences(); messageDestinationRefs = environmentRefsGroup.getMessageDestinationReferences(); persistenceUnitRefs = environmentRefsGroup.getPersistenceUnitRefs(); postConstructs = environmentRefsGroup.getPostConstructs(); preDestroys = environmentRefsGroup.getPreDestroys();
resEnvRefs = environmentRefsGroup.getResourceEnvironmentReferences(); messageDestinationRefs = environmentRefsGroup.getMessageDestinationReferences(); persistenceUnitRefs = environmentRefsGroup.getPersistenceUnitRefs(); postConstructs = environmentRefsGroup.getPostConstructs(); preDestroys = environmentRefsGroup.getPreDestroys();
resEnvRefs = environmentRefsGroup.getResourceEnvironmentReferences(); messageDestinationRefs = environmentRefsGroup.getMessageDestinationReferences(); persistenceUnitRefs = environmentRefsGroup.getPersistenceUnitRefs(); postConstructs = environmentRefsGroup.getPostConstructs(); preDestroys = environmentRefsGroup.getPreDestroys();
resEnvRefs = specEnv.getResourceEnvironmentReferences(); messageDestinationRefs = specEnv.getMessageDestinationReferences(); persistenceUnitRefs = specEnv.getPersistenceUnitRefs(); jbossResEnvRefs = jbossEnv.getResourceEnvironmentReferences(); jbossMessageDestinationRefs = jbossEnv.getMessageDestinationReferences(); jbossPersistenceUnitRefs = jbossEnv.getPersistenceUnitRefs();
resEnvRefs = specEnv.getResourceEnvironmentReferences(); messageDestinationRefs = specEnv.getMessageDestinationReferences(); persistenceUnitRefs = specEnv.getPersistenceUnitRefs(); postConstructs = specEnv.getPostConstructs(); preDestroys = specEnv.getPreDestroys();