@Override
public Extent getExtent(ObjectManager om, Class c, boolean subclasses) {
AbstractClassMetaData cmd = getMetaDataManager().getMetaDataForClass(c, om.getClassLoaderResolver());
validateMetaDataForClass(cmd, om.getClassLoaderResolver());
if (!cmd.isRequiresExtent()) {
throw new NoExtentException(c.getName());
}
// In order to avoid breaking existing apps I'm hard-coding subclasses to
// be false. This breaks spec compliance since the no-arg overload of
// PersistenceManager.getExtent() is supposed to return subclasses.
return new DefaultCandidateExtent(om, c, false, cmd);