use of org.pentaho.platform.plugin.services.pluginmgr.servicemgr.AxisWebServiceManager in project pentaho-platform by pentaho.
the class AxisWebServiceManagerIT method init0.
/*
* Wire up an in-memory platform to register and expose plug-in web services.
*/
@SuppressWarnings("deprecation")
@Before
public void init0() throws ServiceInitializationException {
// set solution path to a place that hosts an axis config file
microPlatform = new MicroPlatform(TestResourceLocation.TEST_RESOURCES + "/AxisWebServiceManagerTest/", "http://test/");
assertNotNull(PentahoSystem.getObjectFactory());
microPlatform.define(ISolutionEngine.class, SolutionEngine.class);
assertNotNull(PentahoSystem.getObjectFactory());
microPlatform.define(IPluginManager.class, DefaultPluginManager.class, Scope.GLOBAL);
microPlatform.define(IServiceManager.class, DefaultServiceManager.class, Scope.GLOBAL);
microPlatform.define(IPluginProvider.class, TstPluginProvider.class);
microPlatform.define(IThemeManager.class, DefaultThemeManager.class);
IServiceTypeManager axisManager = new AxisWebServiceManager();
DefaultServiceManager sm = (DefaultServiceManager) PentahoSystem.get(IServiceManager.class);
sm.setServiceTypeManagers(Arrays.asList(axisManager));
microPlatform.init();
new StandaloneSession();
PentahoSystem.get(IPluginManager.class).reload(PentahoSessionHolder.getSession());
}
Aggregations