use of com.evolveum.midpoint.schema.metadata.MidpointValueMetadataFactory in project midpoint by Evolveum.
the class MidPointPrismContextFactory method createPrismContext.
@Override
public PrismContext createPrismContext() throws SchemaException, IOException {
SchemaRegistryImpl schemaRegistry = createSchemaRegistry();
PrismContextImpl context = PrismContextImpl.create(schemaRegistry);
context.setDefinitionFactory(createDefinitionFactory());
context.setDefaultRelation(SchemaConstants.ORG_DEFAULT);
context.setObjectsElementName(SchemaConstants.C_OBJECTS);
context.setDefaultReferenceTypeName(ObjectReferenceType.COMPLEX_TYPE);
context.setExtensionContainerTypeName(ExtensionType.COMPLEX_TYPE);
if (InternalsConfig.isPrismMonitoring()) {
context.setMonitor(new InternalMonitor());
}
context.setParsingMigrator(new MidpointParsingMigrator());
context.setValueMetadataFactory(new MidpointValueMetadataFactory(context));
context.setProvenanceEquivalenceStrategy(MidpointProvenanceEquivalenceStrategy.INSTANCE);
context.registerQueryExpressionFactory(new PrismQueryExpressionSupport());
return context;
}
Aggregations