]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.reflection/src/org/simantics/scl/reflection/internal/registry/Entry.java
Externalize strings in org.simantics.export.ui
[simantics/platform.git] / bundles / org.simantics.scl.reflection / src / org / simantics / scl / reflection / internal / registry / Entry.java
1 package org.simantics.scl.reflection.internal.registry;
2
3 import org.osgi.framework.Bundle;
4
5 class Entry {
6     final Bundle bundle;
7     final String name;
8     
9     public Entry(Bundle bundle, String name) {
10         this.bundle = bundle;
11         this.name = name;
12     }
13     
14     public Class<?> loadClass() {
15         try {
16             return bundle.loadClass(name);
17         } catch (ClassNotFoundException e) {
18             return null;
19         }   
20     }
21 }