@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.BundleListener
public Class<?> createTestClass(String testName) throws ClassNotFoundException
TestsProvider
createTestClass
in interface TestsProvider
ClassNotFoundException
public long lastModified()
TestsProvider
lastModified
in interface TestsProvider
public String getServicePid()
TestsProvider
getServicePid
in interface TestsProvider
public List<String> getTestNames()
TestsProvider
getTestNames
in interface TestsProvider
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.