public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext elContext, Object base) {
return null;
}
public Class<?> getType(ELContext elContext, Object base, Object property) {
RequestContext requestContext = getRequestContext();
if (base != null || requestContext == null) {
return null;
}
String attributeName = property.toString();
if (requestContext.getRequestScope().contains(attributeName)) {
elContext.setPropertyResolved(true);
return requestContext.getRequestScope().get(attributeName).getClass();
} else if (requestContext.getFlashScope().contains(attributeName)) {
elContext.setPropertyResolved(true);
return requestContext.getFlashScope().get(attributeName).getClass();
} else if (requestContext.inViewState() && requestContext.getViewScope().contains(attributeName)) {
elContext.setPropertyResolved(true);
return requestContext.getViewScope().get(attributeName).getClass();
} else if (requestContext.getFlowScope().contains(attributeName)) {
elContext.setPropertyResolved(true);
return requestContext.getFlowScope().get(attributeName).getClass();
} else if (requestContext.getConversationScope().contains(attributeName)) {
elContext.setPropertyResolved(true);
return requestContext.getConversationScope().get(attributeName).getClass();
} else {
return null;
}
}