* {@inheritDoc}
*/
public boolean verify( Schema... schemas ) throws Exception
{
// Work on a cloned registries
Registries clonedRegistries = cloneRegistries();
// Loop on all the schemas
for ( Schema schema : schemas )
{
try
{
// Inject the schema
boolean loaded = load( clonedRegistries, schema );
if ( !loaded )
{
// We got an error : exit
clonedRegistries.clear();
return false;
}
// Now, check the registries
List<Throwable> errors = clonedRegistries.checkRefInteg();
if ( errors.size() != 0 )
{
// We got an error : exit
clonedRegistries.clear();
return false;
}
}
catch ( Exception e )
{
// We got an error : exit
clonedRegistries.clear();
return false;
}
}
// We can now delete the cloned registries before exiting
clonedRegistries.clear();
return true;
}