{
Collection<InjectionTargetType> injectionTargets = this.convertInjectionTargets(envEntry.getInjectionTargets());
if (!injectionTargets.isEmpty())
{
String encName = EnvironmentEntryUtil.getENCName(envEntry.getName());
this.envEntries.add(new EnvironmentEntryImpl(encName, injectionTargets));
}
}
}
}
// annotated ejb references
AnnotatedEJBReferencesMetaData annotatedEjbRefs = this.delegate.getAnnotatedEjbReferences();
if (annotatedEjbRefs != null)
{
for (AnnotatedEJBReferenceMetaData annotatedEjbRef : annotatedEjbRefs)
{
Collection<InjectionTargetType> injectionTargets = this.convertInjectionTargets(annotatedEjbRef.getInjectionTargets());
if (!injectionTargets.isEmpty())
{
String encName = EnvironmentEntryUtil.getENCName(annotatedEjbRef.getName());
this.envEntries.add(new EnvironmentEntryImpl(encName, injectionTargets));
}
}
}
// ejb local references
EJBLocalReferencesMetaData ejbLocalRefs = this.delegate.getEjbLocalReferences();
if (ejbLocalRefs != null)
{
for (EJBLocalReferenceMetaData ejbLocalRef : ejbLocalRefs)
{
Collection<InjectionTargetType> injectionTargets = this.convertInjectionTargets(ejbLocalRef.getInjectionTargets());
if (!injectionTargets.isEmpty())
{
String encName = EnvironmentEntryUtil.getENCName(ejbLocalRef.getName());
this.envEntries.add(new EnvironmentEntryImpl(encName, injectionTargets));
}
}
}
// ejb reference
EJBReferencesMetaData ejbRefs = this.delegate.getEjbReferences();
if (ejbRefs != null)
{
for (EJBReferenceMetaData ejbRef : ejbRefs)
{
Collection<InjectionTargetType> injectionTargets = this.convertInjectionTargets(ejbRef.getInjectionTargets());
if (!injectionTargets.isEmpty())
{
String encName = EnvironmentEntryUtil.getENCName(ejbRef.getName());
this.envEntries.add(new EnvironmentEntryImpl(encName, injectionTargets));
}
}
}
// persistence unit reference
PersistenceUnitReferencesMetaData persistenceUnitRefs = this.delegate.getPersistenceUnitRefs();
if (persistenceUnitRefs != null)
{
for (PersistenceUnitReferenceMetaData persistenceUnitRef : persistenceUnitRefs)
{
Collection<InjectionTargetType> injectionTargets = this.convertInjectionTargets(persistenceUnitRef.getInjectionTargets());
if (!injectionTargets.isEmpty())
{
String encName = EnvironmentEntryUtil.getENCName(persistenceUnitRef.getName());
this.envEntries.add(new EnvironmentEntryImpl(encName, injectionTargets));
}
}
}
// persistence context reference
PersistenceContextReferencesMetaData persistenceCtxRefs = this.delegate.getPersistenceContextRefs();
if (persistenceCtxRefs != null)
{
for (PersistenceContextReferenceMetaData persistenceCtxRef : persistenceCtxRefs)
{
Collection<InjectionTargetType> injectionTargets = this.convertInjectionTargets(persistenceCtxRef.getInjectionTargets());
if (!injectionTargets.isEmpty())
{
String encName = EnvironmentEntryUtil.getENCName(persistenceCtxRef.getName());
this.envEntries.add(new EnvironmentEntryImpl(encName, injectionTargets));
}
}
}
// resource env reference
ResourceEnvironmentReferencesMetaData resourceEnvRefs = this.delegate.getResourceEnvironmentReferences();
if (resourceEnvRefs != null)
{
for (ResourceEnvironmentReferenceMetaData resourceEnvRef : resourceEnvRefs)
{
Collection<InjectionTargetType> injectionTargets = this.convertInjectionTargets(resourceEnvRef.getInjectionTargets());
if (!injectionTargets.isEmpty())
{
String encName = EnvironmentEntryUtil.getENCName(resourceEnvRef.getName());
this.envEntries.add(new EnvironmentEntryImpl(encName, injectionTargets));
}
}
}
// resource reference
ResourceReferencesMetaData resourceRefs = this.delegate.getResourceReferences();
if (resourceRefs != null)
{
for (ResourceReferenceMetaData resourceRef : resourceRefs)
{
Collection<InjectionTargetType> injectionTargets = this.convertInjectionTargets(resourceRef.getInjectionTargets());
if (!injectionTargets.isEmpty())
{
String encName = EnvironmentEntryUtil.getENCName(resourceRef.getName());
this.envEntries.add(new EnvironmentEntryImpl(encName, injectionTargets));
}
}
}
// message destination references
MessageDestinationReferencesMetaData messageDestRefs = this.delegate.getMessageDestinationReferences();
if (messageDestRefs != null)
{
for (MessageDestinationReferenceMetaData messageDestRef : messageDestRefs)
{
Collection<InjectionTargetType> injectionTargets = this.convertInjectionTargets(messageDestRef.getInjectionTargets());
if (!injectionTargets.isEmpty())
{
String encName = EnvironmentEntryUtil.getENCName(messageDestRef.getName());
this.envEntries.add(new EnvironmentEntryImpl(encName, injectionTargets));
}
}
}
// service references
ServiceReferencesMetaData serviceRefs = this.delegate.getServiceReferences();
if (serviceRefs != null)
{
for (ServiceReferenceMetaData serviceRef : serviceRefs)
{
Collection<InjectionTargetType> injectionTargets = this.convertInjectionTargets(serviceRef.getInjectionTargets());
if (!injectionTargets.isEmpty())
{
String encName = EnvironmentEntryUtil.getENCName(serviceRef.getName());
this.envEntries.add(new EnvironmentEntryImpl(encName, injectionTargets));
}
}
}
}