use of com.alipay.sofa.ark.spi.service.classloader.ClassloaderService in project sofa-ark by alipay.
the class PluginClassloaderTest method before.
@Before
public void before() {
ArkServiceContainer arkServiceContainer = new ArkServiceContainer();
arkServiceContainer.start();
pluginManagerService = ArkServiceContainerHolder.getContainer().getService(PluginManagerService.class);
pluginDeployService = ArkServiceContainerHolder.getContainer().getService(PluginDeployService.class);
classloaderService = ArkServiceContainerHolder.getContainer().getService(ClassloaderService.class);
}
use of com.alipay.sofa.ark.spi.service.classloader.ClassloaderService in project sofa-ark by alipay.
the class TestHelper method createNoneDelegateTestClassLoader.
public ClassLoader createNoneDelegateTestClassLoader() {
PipelineContext context = arkContainer.getPipelineContext();
URL[] classpath = context.getLaunchCommand().getClasspath();
ClassLoaderService classloaderService = arkContainer.getArkServiceContainer().getService(ClassLoaderService.class);
return new NoneDelegateTestClassLoader(MOCK_BIZ_IDENTITY, classpath);
}
use of com.alipay.sofa.ark.spi.service.classloader.ClassloaderService in project sofa-ark by alipay.
the class TestHelper method createTestClassLoader.
public ClassLoader createTestClassLoader() {
PipelineContext context = arkContainer.getPipelineContext();
URL[] classpath = context.getLaunchCommand().getClasspath();
ClassLoaderService classloaderService = arkContainer.getArkServiceContainer().getService(ClassLoaderService.class);
return new TestClassLoader(MOCK_BIZ_IDENTITY, classpath, classloaderService.getSystemClassLoader());
}
use of com.alipay.sofa.ark.spi.service.classloader.ClassloaderService in project sofa-ark by alipay.
the class BizClassloaderTest method before.
@Before
public void before() {
ArkServiceContainer arkServiceContainer = new ArkServiceContainer();
arkServiceContainer.start();
pluginManagerService = ArkServiceContainerHolder.getContainer().getService(PluginManagerService.class);
pluginDeployService = ArkServiceContainerHolder.getContainer().getService(PluginDeployService.class);
classloaderService = ArkServiceContainerHolder.getContainer().getService(ClassloaderService.class);
bizManagerService = ArkServiceContainerHolder.getContainer().getService(BizManagerService.class);
}
use of com.alipay.sofa.ark.spi.service.classloader.ClassloaderService in project sofa-ark by alipay.
the class RegistryServiceTest method before.
@Before
public void before() {
ArkServiceContainer arkServiceContainer = new ArkServiceContainer();
arkServiceContainer.start();
registryService = ArkServiceContainerHolder.getContainer().getService(RegistryService.class);
pluginManagerService = ArkServiceContainerHolder.getContainer().getService(PluginManagerService.class);
pluginDeployService = ArkServiceContainerHolder.getContainer().getService(PluginDeployService.class);
classloaderService = ArkServiceContainerHolder.getContainer().getService(ClassloaderService.class);
}
Aggregations