@Service public class BundleTestsProvider extends Object implements TestsProvider, org.osgi.framework.BundleListener
| Modifier and Type | Field and Description |
|---|---|
static String |
SLING_TEST_REGEXP |
| Constructor and Description |
|---|
BundleTestsProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext ctx) |
void |
bundleChanged(org.osgi.framework.BundleEvent event)
Called when a bundle changes state
|
Class<?> |
createTestClass(String testName)
Create a test class to execute the specified test.
|
protected void |
deactivate(org.osgi.service.component.ComponentContext ctx) |
String |
getServicePid()
Return this service's PID, client might use it later
to instantiate a specific test.
|
List<String> |
getTestNames()
Return the list of available tests
|
long |
lastModified()
Return the timestamp at which our list of tests was last modified
|
String |
toString() |
public static final String SLING_TEST_REGEXP
protected void activate(org.osgi.service.component.ComponentContext ctx)
protected void deactivate(org.osgi.service.component.ComponentContext ctx)
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerpublic Class<?> createTestClass(String testName) throws ClassNotFoundException
TestsProvidercreateTestClass in interface TestsProviderClassNotFoundExceptionpublic long lastModified()
TestsProviderlastModified in interface TestsProviderpublic String getServicePid()
TestsProvidergetServicePid in interface TestsProviderpublic List<String> getTestNames()
TestsProvidergetTestNames in interface TestsProviderCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.