com.eurotech.framework.test
Class TestExtender

java.lang.Object
  extended by com.eurotech.framework.test.TestExtender
All Implemented Interfaces:
org.osgi.util.tracker.BundleTrackerCustomizer<Object>

public class TestExtender
extends Object
implements org.osgi.util.tracker.BundleTrackerCustomizer<Object>


Constructor Summary
TestExtender(String platform, org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
 Object addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
           
 org.osgi.framework.Bundle getHostBundle(org.osgi.framework.Bundle bundle)
           
 List<Class> getTestClass(org.osgi.framework.Bundle bundle)
           
 Test inspectClass(Class clazz)
           
 Class loadClass(String clazz, org.osgi.framework.Bundle bundleHost)
           
 void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
           
 void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
           
 void test(long bundleId)
           
 void testAll()
           
 void testClass(String className, Test testClass, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestExtender

public TestExtender(String platform,
                    org.osgi.framework.BundleContext bundleContext)
Method Detail

testAll

public void testAll()

test

public void test(long bundleId)

loadClass

public Class loadClass(String clazz,
                       org.osgi.framework.Bundle bundleHost)

getHostBundle

public org.osgi.framework.Bundle getHostBundle(org.osgi.framework.Bundle bundle)

getTestClass

public List<Class> getTestClass(org.osgi.framework.Bundle bundle)

inspectClass

public Test inspectClass(Class clazz)

testClass

public void testClass(String className,
                      Test testClass,
                      Object object)

addingBundle

public Object addingBundle(org.osgi.framework.Bundle bundle,
                           org.osgi.framework.BundleEvent event)
Specified by:
addingBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<Object>

modifiedBundle

public void modifiedBundle(org.osgi.framework.Bundle bundle,
                           org.osgi.framework.BundleEvent event,
                           Object object)
Specified by:
modifiedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<Object>

removedBundle

public void removedBundle(org.osgi.framework.Bundle bundle,
                          org.osgi.framework.BundleEvent event,
                          Object object)
Specified by:
removedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<Object>


Copyright © 2013. All Rights Reserved.