use of org.jboss.tools.hibernate.runtime.v_5_3.internal.util.ConfigurationMetadataDescriptor in project jbosstools-hibernate by jbosstools.
the class ServiceImpl method createExporter.
@Override
public IExporter createExporter(String exporterClassName) {
Exporter exporter = (Exporter) Util.getInstance(exporterClassName, facadeFactory.getClassLoader());
exporter.setMetadataDescriptor(new ConfigurationMetadataDescriptor(newDefaultConfiguration()));
return facadeFactory.createExporter(exporter);
}
use of org.jboss.tools.hibernate.runtime.v_5_3.internal.util.ConfigurationMetadataDescriptor in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeTest method testSetConfiguration.
@Test
public void testSetConfiguration() {
Configuration cfg = new Configuration();
IConfiguration configuration = new AbstractConfigurationFacade(FACADE_FACTORY, cfg) {
};
exporterFacade.setConfiguration(configuration);
Assert.assertEquals("setMetadataDescriptor", methodName);
Object argument = arguments[0];
Assert.assertTrue(argument instanceof ConfigurationMetadataDescriptor);
ConfigurationMetadataDescriptor metadataDescriptor = (ConfigurationMetadataDescriptor) argument;
Assert.assertSame(configuration, metadataDescriptor.getConfiguration());
}
use of org.jboss.tools.hibernate.runtime.v_5_3.internal.util.ConfigurationMetadataDescriptor in project jbosstools-hibernate by jbosstools.
the class ExporterFacadeImpl method setConfiguration.
@Override
public void setConfiguration(IConfiguration configuration) {
Exporter exporter = (Exporter) getTarget();
exporter.setMetadataDescriptor(new ConfigurationMetadataDescriptor(configuration));
}
Aggregations