private void parseResources(ServiceReferenceDescriptor serviceRef, JndiNameEnvironment env, AppResources appResources) { String name = getLogicalJNDIName(serviceRef.getName(), env); if (serviceRef.hasLookupName()) appResources.store(new AppResource(name, serviceRef.getLookupName(), serviceRef.getType(), env, true)); else appResources.storeInNamespace(name, env); }
if( desc.hasLookupName()) { return iContext.lookup(desc.getLookupName());
if (!aRef.hasLookupName() && ok(getLookupValue(annotation, annInfo))) aRef.setLookupName(getLookupValue(annotation, annInfo));
if (!aRef.hasLookupName() && ok(getLookupValue(annotation, annInfo))) aRef.setLookupName(getLookupValue(annotation, annInfo));