* @param ctxt OMF Context that this metadata manager operates in
*/
public MetaDataManager(OMFContext ctxt)
{
this.omfContext = ctxt;
PersistenceConfiguration conf = omfContext.getPersistenceConfiguration();
JDOImplHelper.getInstance().removeRegisterClassListener(new MetaDataRegisterClassListener());
this.setValidate(conf.getBooleanProperty("org.jpox.metadata.validate"));
if (JavaUtils.isJRE1_5OrAbove())
{
try
{
ClassLoaderResolver clr = ctxt.getClassLoaderResolver(null);
Class annotationReaderClass = clr.classForName(conf.getStringProperty("org.jpox.metadata.annotationManager"));
Class[] ctrArgs = new Class[] {MetaDataManager.class};
Object[] ctrParams = new Object[] {this};
Constructor ctor = annotationReaderClass.getConstructor(ctrArgs);
annotationManager = (AnnotationManager)ctor.newInstance(ctrParams);