use of org.apache.openejb.jee.ResourceEnvRef$JAXB.readResourceEnvRef in project tomee by apache.
the class JndiEncInfoBuilder method buildResourceEnvRefInfos.
private void buildResourceEnvRefInfos(final JndiConsumer item, final JndiEncInfo moduleJndiEnc, final JndiEncInfo compJndiEnc) {
for (final ResourceEnvRef res : item.getResourceEnvRef()) {
final ResourceEnvReferenceInfo info = new ResourceEnvReferenceInfo();
info.referenceName = res.getResourceEnvRefName();
info.resourceEnvRefType = res.getResourceEnvRefType();
info.resourceID = res.getMappedName();
info.location = buildLocationInfo(res);
info.targets.addAll(buildInjectionInfos(res));
insert(info, appInfo.globalJndiEnc.resourceEnvRefs, appInfo.appJndiEnc.resourceEnvRefs, moduleJndiEnc.resourceEnvRefs, compJndiEnc.resourceEnvRefs);
}
for (final MessageDestinationRef res : item.getMessageDestinationRef()) {
final ResourceEnvReferenceInfo info = new ResourceEnvReferenceInfo();
info.referenceName = res.getMessageDestinationRefName();
info.resourceEnvRefType = res.getMessageDestinationType();
info.resourceID = res.getMappedName();
info.location = buildLocationInfo(res);
info.targets.addAll(buildInjectionInfos(res));
insert(info, appInfo.globalJndiEnc.resourceEnvRefs, appInfo.appJndiEnc.resourceEnvRefs, moduleJndiEnc.resourceEnvRefs, compJndiEnc.resourceEnvRefs);
}
}
Aggregations