Closed
Description
In the following example code, the body of the function is referencing context
, but the parameter is ctx
.
Example 13. Using an AbstractContextMapper
public Object doMapFromContext(DirContextOperations ctx) {
Person p = new Person();
p.setFullName(context.getStringAttribute("cn"));
p.setLastName(context.getStringAttribute("sn"));
p.setDescription(context.getStringAttribute("description"));
return p;
}
}