When I annotate a POJO like this:
@XmlElement(type=LocationInType.class)
public Location getDropOffLocation()
{
return super.getDropOffLocation();
}
Then Aegis seems to register this Type with Location.class so that EVERY time a Location object is encountered it uses the same LocationInType, even though other instances are NOT annotated in this fashion. Is this a bug or a feature? I am expecting the mappings to revert to default BeanInfo based introspection for all cases of Location that are not Annotated.
Is there anyway I can ensure this behaviour?