/* */ {
/* */ }
/* */
/* */ public void handleMethodAnnotations(Method method, InjectionContainer container, Map<AccessibleObject, Injector> injectors)
/* */ {
/* 74 */ JndiInject ref = (JndiInject)method.getAnnotation(JndiInject.class);
/* 75 */ if (ref != null)
/* */ {
/* 77 */ if (!method.getName().startsWith("set"))
/* 78 */ throw new RuntimeException("@EJB can only be used with a set method: " + method);
/* 79 */ String encName = InjectionUtil.getEncName(method);
/* 80 */ if (!container.getEncInjectors().containsKey(encName))
/* */ {
/* 82 */ container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, ref.jndiName(), "@JndiInject"));
/* */ }
/* 84 */ injectors.put(method, new JndiMethodInjector(method, encName, container.getEnc()));
/* */ }
/* */ }