Search in sources :

Example 1 with DynamicFactory

use of org.talend.core.runtime.dynamic.DynamicFactory in project tbd-studio-se by Talend.

the class AbstractDynamicDistributionTemplateTest method beforeTest.

@Before
public void beforeTest() throws Exception {
    DynamicFactory factory = DynamicFactory.getInstance();
    IDynamicPlugin dynamicPlugin = factory.createDynamicPlugin();
    IDynamicPluginConfiguration dynamicPluginConfiguration = DynamicFactory.getInstance().createDynamicPluginConfiguration();
    dynamicPluginConfiguration.setDistribution(DISTRIBUTION);
    // $NON-NLS-1$
    dynamicPluginConfiguration.setVersion("v1");
    dynamicPlugin.setPluginConfiguration(dynamicPluginConfiguration);
    dynamicPluginAdapter = new DynamicPluginAdapter(dynamicPlugin, DynamicCDHDistributionPreferenceFactory.getInstance().getDynamicDistributionPreference(ProjectManager.getInstance().getCurrentProject()), null);
}
Also used : DynamicPluginAdapter(org.talend.hadoop.distribution.dynamic.adapter.DynamicPluginAdapter) IDynamicPlugin(org.talend.core.runtime.dynamic.IDynamicPlugin) DynamicFactory(org.talend.core.runtime.dynamic.DynamicFactory) IDynamicPluginConfiguration(org.talend.core.runtime.dynamic.IDynamicPluginConfiguration) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 DynamicFactory (org.talend.core.runtime.dynamic.DynamicFactory)1 IDynamicPlugin (org.talend.core.runtime.dynamic.IDynamicPlugin)1 IDynamicPluginConfiguration (org.talend.core.runtime.dynamic.IDynamicPluginConfiguration)1 DynamicPluginAdapter (org.talend.hadoop.distribution.dynamic.adapter.DynamicPluginAdapter)1