for (Field field : fields) {
Resource resource = field.getAnnotation(Resource.class);
Class type = getInjectionType(resource.type(), null, field);
if (WebServiceContext.class == type) {
holder.addInjection(field.getDeclaringClass().getName(),
new Injection(field.getDeclaringClass().getName(), getInjectionName(null, field), BINDING_WEBSERVICE_CONTEXR_JNDI_NAME, ReferenceType.RESOURCE_ENV));
}
}
List<Method> methods = finder.findAnnotatedMethods(Resource.class);
for (Method method : methods) {
Resource resource = method.getAnnotation(Resource.class);
Class type = getInjectionType(resource.type(), method, null);
if (WebServiceContext.class == type) {
holder.addInjection(method.getDeclaringClass().getName(),
new Injection(method.getDeclaringClass().getName(), getInjectionName(method, null), BINDING_WEBSERVICE_CONTEXR_JNDI_NAME, ReferenceType.RESOURCE_ENV));
}
}
}