Community
Participate
Working Groups
PerformanceMeterFactory instance = null;
if (className != null && className.length() > 0) {
try {
int separator = className.indexOf(':');
Class c = null;
Bundle bundle = null;
if (Platform.isRunning()) {
if (separator == -1) {
bundle = PerformanceTestPlugin.getDefault().getBundle();
} else {
String bundleName = className.substring(0, separator);
className = className.substring(separator + 1);
bundle = Platform.getBundle(bundleName);
}
c = bundle.loadClass(className);
c = Class.forName(className);
Class c = bundle.loadClass(className);
instance = (PerformanceMeterFactory) c.newInstance();
catch (ClassNotFoundException e) {