targetClass = loadClass(target.className);
} catch (OpenEJBException ex) {
continue;
}
Injection injection = new Injection(info.referenceName, target.propertyName, targetClass);
injections.add(injection);
}
}
for (EjbReferenceInfo info : jndiEnc.ejbReferences) {
for (InjectionInfo target : info.targets) {
final Class<?> targetClass;
try {
targetClass = loadClass(target.className);
} catch (OpenEJBException ex) {
continue;
}
Injection injection = new Injection(info.referenceName, target.propertyName, targetClass);
injections.add(injection);
}
}
for (EjbReferenceInfo info : jndiEnc.ejbLocalReferences) {
for (InjectionInfo target : info.targets) {
final Class<?> targetClass;
try {
targetClass = loadClass(target.className);
} catch (OpenEJBException ex) {
continue;
}
Injection injection = new Injection(info.referenceName, target.propertyName, targetClass);
injections.add(injection);
}
}
for (PersistenceUnitReferenceInfo info : jndiEnc.persistenceUnitRefs) {
for (InjectionInfo target : info.targets) {
final Class<?> targetClass;
try {
targetClass = loadClass(target.className);
} catch (OpenEJBException ex) {
continue;
}
Injection injection = new Injection(info.referenceName, target.propertyName, targetClass);
injections.add(injection);
}
}
for (PersistenceContextReferenceInfo info : jndiEnc.persistenceContextRefs) {
for (InjectionInfo target : info.targets) {
final Class<?> targetClass;
try {
targetClass = loadClass(target.className);
} catch (OpenEJBException ex) {
continue;
}
Injection injection = new Injection(info.referenceName, target.propertyName, targetClass);
injections.add(injection);
}
}
for (ResourceReferenceInfo info : jndiEnc.resourceRefs) {
for (InjectionInfo target : info.targets) {
final Class<?> targetClass;
try {
targetClass = loadClass(target.className);
} catch (OpenEJBException ex) {
continue;
}
Injection injection = new Injection(info.referenceName, target.propertyName, targetClass);
injections.add(injection);
}
}
for (ResourceEnvReferenceInfo info : jndiEnc.resourceEnvRefs) {
for (InjectionInfo target : info.targets) {
final Class<?> targetClass;
try {
targetClass = loadClass(target.className);
} catch (OpenEJBException ex) {
continue;
}
Injection injection = new Injection(info.referenceName, target.propertyName, targetClass);
injections.add(injection);
}
}
for (ServiceReferenceInfo info : jndiEnc.serviceRefs) {
for (InjectionInfo target : info.targets) {
final Class<?> targetClass;
try {
targetClass = loadClass(target.className);
} catch (OpenEJBException ex) {
continue;
}
Injection injection = new Injection(info.referenceName, target.propertyName, targetClass);
injections.add(injection);
}
}
return injections;