use of org.apache.myfaces.view.facelets.tag.LambdaMetadataTargetImpl in project myfaces by apache.
the class CompositeMetaRulesetImpl method _getBaseMetadataTarget.
private MetadataTarget _getBaseMetadataTarget() {
Map<String, MetadataTarget> metadata = getMetaData();
String key = _type.getName();
MetadataTarget meta = metadata.get(key);
if (meta == null) {
try {
if (PropertyDescriptorUtils.isUseLambdaMetafactory(FacesContext.getCurrentInstance().getExternalContext())) {
meta = new LambdaMetadataTargetImpl(_type);
} else {
meta = new MetadataTargetImpl(_type);
}
} catch (IntrospectionException e) {
throw new TagException(_tag, "Error Creating TargetMetadata", e);
}
metadata.put(key, meta);
}
return meta;
}
Aggregations